Skip to content

Commit c9fcbd5

Browse files
committed
Remove string based named param syntax
I'm not sure this is actually useful/needed, drop it for now. If we do support this, we nede to be careful about things like "0" keys in additional named params.
1 parent 177af75 commit c9fcbd5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Zend/zend_language_parser.y

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,6 @@ argument:
717717
expr { $$ = $1; }
718718
| T_STRING T_DOUBLE_ARROW expr
719719
{ $$ = zend_ast_create(ZEND_AST_NAMED_ARG, $1, $3); }
720-
| T_CONSTANT_ENCAPSED_STRING T_DOUBLE_ARROW expr
721-
{ $$ = zend_ast_create(ZEND_AST_NAMED_ARG, $1, $3); }
722720
| T_ELLIPSIS expr { $$ = zend_ast_create(ZEND_AST_UNPACK, $2); }
723721
;
724722

0 commit comments

Comments
 (0)