Skip to content

Commit 7284a4d

Browse files
committed
Remove no longer necessary class parsing workaround
This was split to work around the attribute assignment bug fixed in the previous commit, and as such is no longer necessary.
1 parent d3d1ee4 commit 7284a4d

File tree

2 files changed

+873
-878
lines changed

2 files changed

+873
-878
lines changed

grammar/php7.y

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,7 @@ function_declaration_statement:
348348
;
349349

350350
class_declaration_statement:
351-
class_entry_type identifier extends_from implements_list '{' class_statement_list '}'
352-
{ $$ = Stmt\Class_[$2, ['type' => $1, 'extends' => $3, 'implements' => $4, 'stmts' => $6, 'attrGroups' => []]];
353-
$this->checkClass($$, #2); }
354-
| attributes class_entry_type identifier extends_from implements_list '{' class_statement_list '}'
351+
optional_attributes class_entry_type identifier extends_from implements_list '{' class_statement_list '}'
355352
{ $$ = Stmt\Class_[$3, ['type' => $2, 'extends' => $4, 'implements' => $5, 'stmts' => $7, 'attrGroups' => $1]];
356353
$this->checkClass($$, #3); }
357354
| optional_attributes T_INTERFACE identifier interface_extends_list '{' class_statement_list '}'

0 commit comments

Comments
 (0)