File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 8484use function array_merge ;
8585use function array_pop ;
8686use function array_unique ;
87- use function constant ;
8887use function count ;
89- use function defined ;
9088use function explode ;
9189use function file_get_contents ;
9290use function htmlspecialchars ;
@@ -1069,11 +1067,13 @@ private static function keywordTokens(): array
10691067 T_ENDIF => true ,
10701068 T_ENDSWITCH => true ,
10711069 T_ENDWHILE => true ,
1070+ T_ENUM => true ,
10721071 T_EVAL => true ,
10731072 T_EXIT => true ,
10741073 T_EXTENDS => true ,
10751074 T_FINAL => true ,
10761075 T_FINALLY => true ,
1076+ T_FN => true ,
10771077 T_FOR => true ,
10781078 T_FOREACH => true ,
10791079 T_FUNCTION => true ,
@@ -1089,12 +1089,14 @@ private static function keywordTokens(): array
10891089 T_INTERFACE => true ,
10901090 T_ISSET => true ,
10911091 T_LIST => true ,
1092+ T_MATCH => true ,
10921093 T_NAMESPACE => true ,
10931094 T_NEW => true ,
10941095 T_PRINT => true ,
10951096 T_PRIVATE => true ,
10961097 T_PROTECTED => true ,
10971098 T_PUBLIC => true ,
1099+ T_READONLY => true ,
10981100 T_REQUIRE => true ,
10991101 T_REQUIRE_ONCE => true ,
11001102 T_RETURN => true ,
@@ -1111,22 +1113,6 @@ private static function keywordTokens(): array
11111113 T_YIELD_FROM => true ,
11121114 ];
11131115
1114- if (defined ('T_FN ' )) {
1115- self ::$ keywordTokens [constant ('T_FN ' )] = true ;
1116- }
1117-
1118- if (defined ('T_MATCH ' )) {
1119- self ::$ keywordTokens [constant ('T_MATCH ' )] = true ;
1120- }
1121-
1122- if (defined ('T_ENUM ' )) {
1123- self ::$ keywordTokens [constant ('T_ENUM ' )] = true ;
1124- }
1125-
1126- if (defined ('T_READONLY ' )) {
1127- self ::$ keywordTokens [constant ('T_READONLY ' )] = true ;
1128- }
1129-
11301116 return self ::$ keywordTokens ;
11311117 }
11321118}
You can’t perform that action at this time.
0 commit comments