Skip to content

Commit 31f3eeb

Browse files
committed
Fix tokenizer test due to recent changes
1 parent 8cd6207 commit 31f3eeb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Zend/zend_language_parser.y

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ reserved_non_modifiers:
270270
| T_FOR | T_ENDFOR | T_FOREACH | T_ENDFOREACH | T_DECLARE | T_ENDDECLARE | T_AS | T_TRY | T_CATCH | T_FINALLY
271271
| T_THROW | T_USE | T_INSTEADOF | T_GLOBAL | T_VAR | T_UNSET | T_ISSET | T_EMPTY | T_CONTINUE | T_GOTO
272272
| T_FUNCTION | T_CONST | T_RETURN | T_PRINT | T_YIELD | T_LIST | T_SWITCH | T_ENDSWITCH | T_CASE | T_DEFAULT | T_BREAK
273-
| T_ARRAY | T_CALLABLE | T_EXTENDS | T_IMPLEMENTS | T_NAMESPACE | T_TRAIT | T_INTERFACE
274-
| T_CLASS
273+
| T_ARRAY | T_CALLABLE | T_EXTENDS | T_IMPLEMENTS | T_NAMESPACE | T_TRAIT | T_INTERFACE | T_CLASS
275274
;
276275

277276
semi_reserved:

ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ L6: T_STRING continue
5858
;
5959
L7: T_STRING X
6060
L7: T_DOUBLE_COLON ::
61-
L7: T_CLASS class
61+
L7: T_STRING class
6262
;
6363
L9: T_CLASS class
6464
L9: T_STRING X

0 commit comments

Comments
 (0)