Skip to content

Commit 7722d2c

Browse files
committed
Simplify argument production
1 parent e39cc57 commit 7722d2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Zend/zend_language_parser.y

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,8 @@ non_empty_argument_list:
579579
;
580580

581581
argument:
582-
expr_without_variable { $$ = $1; }
583-
| variable { $$ = $1; }
584-
/*| '&' variable { ZEND_ASSERT(0); } */
585-
| T_ELLIPSIS expr { $$ = zend_ast_create(ZEND_AST_UNPACK, $2); }
582+
expr { $$ = $1; }
583+
| T_ELLIPSIS expr { $$ = zend_ast_create(ZEND_AST_UNPACK, $2); }
586584
;
587585

588586
global_var_list:

0 commit comments

Comments
 (0)