Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 12, 2022
1 parent 8baa046 commit 9bffe60
Show file tree
Hide file tree
Showing 6 changed files with 939 additions and 916 deletions.
6 changes: 4 additions & 2 deletions grammar/php7.y
Expand Up @@ -381,18 +381,20 @@ enum_case_expr:
;

class_entry_type:
T_CLASS { $$ = null; }
T_CLASS { $$ = 0; }
| class_modifiers T_CLASS { $$ = $1; }
;

class_modifiers:
class_modifier { $$ = $1; }
| class_modifiers class_modifier { $this->checkModifier($1, $2, #2); $$ = $1 | $2; }
;

class_modifier:
| T_ABSTRACT { $$ = Stmt\Class_::MODIFIER_ABSTRACT; }
T_ABSTRACT { $$ = Stmt\Class_::MODIFIER_ABSTRACT; }
| T_FINAL { $$ = Stmt\Class_::MODIFIER_FINAL; }
| T_READONLY { $$ = Stmt\Class_::MODIFIER_READONLY; }
;

extends_from:
/* empty */ { $$ = null; }
Expand Down

0 comments on commit 9bffe60

Please sign in to comment.