aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-09-02 11:06:18 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-09-02 11:06:18 +0200
commite13e93db3d05274442764bf6148c1b63d4b3435f (patch)
tree2ae9d8df4d458fc36558535c822767af311a5cd8
parent5e59e90c6e0d309933aad9c65e75f1a26826b5ab (diff)
parent6a25e7fe0886f42fd20062d75fa3e573871060ba (diff)
downloadConsistency-e13e93db3d05274442764bf6148c1b63d4b3435f.zip
Consistency-e13e93db3d05274442764bf6148c1b63d4b3435f.tar.gz
Consistency-e13e93db3d05274442764bf6148c1b63d4b3435f.tar.bz2
Consistency: `void` is a reserved keyword now.
-rw-r--r--Consistency.php1
-rw-r--r--Prelude.php2
-rw-r--r--Test/Unit/Consistency.php1
3 files changed, 3 insertions, 1 deletions
diff --git a/Consistency.php b/Consistency.php
index 87b7b27..9f64f0f 100644
--- a/Consistency.php
+++ b/Consistency.php
@@ -184,6 +184,7 @@ class Consistency
'unset',
'use',
'var',
+ 'void',
'while',
'xor',
'yield',
diff --git a/Prelude.php b/Prelude.php
index 188b26f..0a64f98 100644
--- a/Prelude.php
+++ b/Prelude.php
@@ -70,7 +70,7 @@ $define('PHP_INT_MIN', ~PHP_INT_MAX);
$define('PHP_FLOAT_MIN', (float) PHP_INT_MIN);
$define('PHP_FLOAT_MAX', (float) PHP_INT_MAX);
$define('π', M_PI);
-$define('void', (unset) null);
+$define('nil', (unset) null);
$define('_public', 1);
$define('_protected', 2);
$define('_private', 4);
diff --git a/Test/Unit/Consistency.php b/Test/Unit/Consistency.php
index e5415b2..bd66093 100644
--- a/Test/Unit/Consistency.php
+++ b/Test/Unit/Consistency.php
@@ -198,6 +198,7 @@ class Consistency extends Test\Unit\Suite
'unset',
'use',
'var',
+ 'void',
'while',
'xor',
'yield',