]> granicus.if.org Git - php/commitdiff
Simplify `argument` production
authorNikita Popov <nikic@php.net>
Fri, 29 Aug 2014 16:42:05 +0000 (18:42 +0200)
committerNikita Popov <nikic@php.net>
Fri, 29 Aug 2014 16:42:05 +0000 (18:42 +0200)
Zend/zend_language_parser.y

index e86e5e2fa1d65713647838050d242919c7f2791b..6dc5a564f2f8ca319ed23850aaca6eac460c74e2 100644 (file)
@@ -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: