File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ final class Tokens
694
694
T_ENDSWITCH => T_ENDSWITCH ,
695
695
T_ENDWHILE => T_ENDWHILE ,
696
696
T_ENUM => T_ENUM ,
697
+ T_EVAL => T_EVAL ,
697
698
T_EXIT => T_EXIT ,
698
699
T_EXTENDS => T_EXTENDS ,
699
700
T_FINAL => T_FINAL ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class ContextSensitiveKeywords
29
29
const /* testEndSwitch */ ENDSWITCH = 'ENDSWITCH ' ;
30
30
const /* testEndWhile */ ENDWHILE = 'ENDWHILE ' ;
31
31
const /* testEnum */ ENUM = 'ENUM ' ;
32
+ const /* testEval */ EVAL = 'EVAL ' ;
32
33
const /* testExit */ EXIT = 'EXIT ' ;
33
34
const /* testExtends */ EXTENDS = 'EXTENDS ' ;
34
35
const /* testFinal */ FINAL = 'FINAL ' ;
@@ -165,6 +166,8 @@ echo $foo;
165
166
print $ foo ;
166
167
/* testDieIsKeyword */
167
168
die ($ foo );
169
+ /* testEvalIsKeyword */
170
+ eval ('<?php echo 5; ' );
168
171
/* testExitIsKeyword */
169
172
exit ;
170
173
@@ -212,3 +215,5 @@ $instantiated3 = new /* testClassInstantiationStaticIsKeyword */ static($param);
212
215
213
216
class Foo extends /* testNamespaceInNameIsKeyword */ namespace \Exception
214
217
{}
218
+
219
+ function /* testKeywordAfterFunctionShouldBeString */ eval () {}
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ public function dataStrings()
72
72
['/* testEndSwitch */ ' ],
73
73
['/* testEndWhile */ ' ],
74
74
['/* testEnum */ ' ],
75
+ ['/* testEval */ ' ],
75
76
['/* testExit */ ' ],
76
77
['/* testExtends */ ' ],
77
78
['/* testFinal */ ' ],
@@ -121,6 +122,8 @@ public function dataStrings()
121
122
['/* testNamespaceNameIsString1 */ ' ],
122
123
['/* testNamespaceNameIsString2 */ ' ],
123
124
['/* testNamespaceNameIsString3 */ ' ],
125
+
126
+ ['/* testKeywordAfterFunctionShouldBeString */ ' ],
124
127
];
125
128
126
129
}//end dataStrings()
@@ -376,6 +379,10 @@ public function dataKeywords()
376
379
'/* testDieIsKeyword */ ' ,
377
380
'T_EXIT ' ,
378
381
],
382
+ [
383
+ '/* testEvalIsKeyword */ ' ,
384
+ 'T_EVAL ' ,
385
+ ],
379
386
[
380
387
'/* testExitIsKeyword */ ' ,
381
388
'T_EXIT ' ,
You can’t perform that action at this time.
0 commit comments