From: Nikita Popov Date: Fri, 29 Aug 2014 16:42:05 +0000 (+0200) Subject: Simplify `argument` production X-Git-Tag: PRE_PHP7_REMOVALS~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7722d2c58464db10fb1d32b2e7e5a188a3b6dc1e;p=php Simplify `argument` production --- diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y index e86e5e2fa1..6dc5a564f2 100644 --- a/Zend/zend_language_parser.y +++ b/Zend/zend_language_parser.y @@ -579,10 +579,8 @@ non_empty_argument_list: ; argument: - expr_without_variable { $$ = $1; } - | variable { $$ = $1; } - /*| '&' variable { ZEND_ASSERT(0); } */ - | T_ELLIPSIS expr { $$ = zend_ast_create(ZEND_AST_UNPACK, $2); } + expr { $$ = $1; } + | T_ELLIPSIS expr { $$ = zend_ast_create(ZEND_AST_UNPACK, $2); } ; global_var_list: