Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions Zend/zend_language_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
%type <num> method_modifiers class_const_modifiers member_modifier optional_cpp_modifiers
%type <num> class_modifiers class_modifier anonymous_class_modifiers anonymous_class_modifiers_optional use_type backup_fn_flags

%type <ptr> backup_lex_pos
%type <str> backup_doc_comment

%type <ident> reserved_non_modifiers semi_reserved
Expand Down Expand Up @@ -1400,9 +1399,9 @@ inline_function:
NULL,
$5, $7, $11, $8, NULL); CG(extra_fn_flags) = $9; }
| fn returns_ref backup_doc_comment '(' parameter_list ')' return_type
T_DOUBLE_ARROW backup_fn_flags backup_lex_pos expr backup_fn_flags
{ $$ = zend_ast_create_decl(ZEND_AST_ARROW_FUNC, $2 | $12, $1, $3,
NULL, $5, NULL, $11, $7, NULL);
T_DOUBLE_ARROW backup_fn_flags expr backup_fn_flags
{ $$ = zend_ast_create_decl(ZEND_AST_ARROW_FUNC, $2 | $11, $1, $3,
NULL, $5, NULL, $10, $7, NULL);
CG(extra_fn_flags) = $9; }
;

Expand All @@ -1422,10 +1421,6 @@ backup_fn_flags:
%prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; }
;

backup_lex_pos:
%empty { $$ = LANG_SCNG(yy_text); }
;

returns_ref:
%empty { $$ = 0; }
| ampersand { $$ = ZEND_ACC_RETURN_REFERENCE; }
Expand Down
Loading