File tree 1 file changed +4
-18
lines changed 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 84
84
use function array_merge ;
85
85
use function array_pop ;
86
86
use function array_unique ;
87
- use function constant ;
88
87
use function count ;
89
- use function defined ;
90
88
use function explode ;
91
89
use function file_get_contents ;
92
90
use function htmlspecialchars ;
@@ -1069,11 +1067,13 @@ private static function keywordTokens(): array
1069
1067
T_ENDIF => true ,
1070
1068
T_ENDSWITCH => true ,
1071
1069
T_ENDWHILE => true ,
1070
+ T_ENUM => true ,
1072
1071
T_EVAL => true ,
1073
1072
T_EXIT => true ,
1074
1073
T_EXTENDS => true ,
1075
1074
T_FINAL => true ,
1076
1075
T_FINALLY => true ,
1076
+ T_FN => true ,
1077
1077
T_FOR => true ,
1078
1078
T_FOREACH => true ,
1079
1079
T_FUNCTION => true ,
@@ -1089,12 +1089,14 @@ private static function keywordTokens(): array
1089
1089
T_INTERFACE => true ,
1090
1090
T_ISSET => true ,
1091
1091
T_LIST => true ,
1092
+ T_MATCH => true ,
1092
1093
T_NAMESPACE => true ,
1093
1094
T_NEW => true ,
1094
1095
T_PRINT => true ,
1095
1096
T_PRIVATE => true ,
1096
1097
T_PROTECTED => true ,
1097
1098
T_PUBLIC => true ,
1099
+ T_READONLY => true ,
1098
1100
T_REQUIRE => true ,
1099
1101
T_REQUIRE_ONCE => true ,
1100
1102
T_RETURN => true ,
@@ -1111,22 +1113,6 @@ private static function keywordTokens(): array
1111
1113
T_YIELD_FROM => true ,
1112
1114
];
1113
1115
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
-
1130
1116
return self ::$ keywordTokens ;
1131
1117
}
1132
1118
}
You can’t perform that action at this time.
0 commit comments