Skip to content

Commit aae5d1b

Browse files
committed
Revise method_body to just delegate to function_body, now that function_body exists.
1 parent 45e959e commit aae5d1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_language_parser.y

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,7 @@ absolute_trait_method_reference:
952952

953953
method_body:
954954
';' /* abstract method */ { $$ = NULL; }
955-
| '{' inner_statement_list '}' { $$ = $2; }
956-
| T_DOUBLE_ARROW expr ';' { $$ = zend_ast_create(ZEND_AST_RETURN, $2); }
955+
| function_body { $$ = $1; }
957956
;
958957

959958
variable_modifiers:

0 commit comments

Comments
 (0)