Skip to content

Commit 9fbea74

Browse files
committed
Temp reset to see if travis still fails
1 parent 00dde7e commit 9fbea74

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Zend/zend_language_parser.y

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
278278
%type <ast> attribute_decl attribute attributes attribute_group namespace_declaration_name
279279
%type <ast> match match_arm_list non_empty_match_arm_list match_arm match_arm_cond_list
280280
%type <ast> enum_declaration_statement enum_backing_type enum_case enum_case_expr
281-
%type <ast> function_name
282281

283282
%type <num> returns_ref function fn is_reference is_variadic variable_modifiers
284283
%type <num> method_modifiers non_empty_member_modifiers member_modifier
@@ -561,17 +560,8 @@ unset_variable:
561560
variable { $$ = zend_ast_create(ZEND_AST_UNSET, $1); }
562561
;
563562

564-
function_name:
565-
T_STRING { $$ = $1; }
566-
| T_READONLY {
567-
zval zv;
568-
if (zend_lex_tstring(&zv, $1) == FAILURE) { YYABORT; }
569-
$$ = zend_ast_create_zval(&zv);
570-
}
571-
;
572-
573563
function_declaration_statement:
574-
function returns_ref function_name backup_doc_comment '(' parameter_list ')' return_type
564+
function returns_ref T_STRING backup_doc_comment '(' parameter_list ')' return_type
575565
backup_fn_flags '{' inner_statement_list '}' backup_fn_flags
576566
{ $$ = zend_ast_create_decl(ZEND_AST_FUNC_DECL, $2 | $13, $1, $4,
577567
zend_ast_get_str($3), $6, NULL, $11, $8, NULL); CG(extra_fn_flags) = $9; }

0 commit comments

Comments
 (0)