Skip to content

Commit e40ed39

Browse files
committed
Allow arbitrary expressions in new/instanceof using {} syntax
1 parent 18e0d65 commit e40ed39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_language_parser.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,7 @@ class_name:
10781078
class_name_reference:
10791079
class_name { $$ = $1; }
10801080
| new_variable { $$ = $1; }
1081+
| '{' expr '}' { $$ = $2; }
10811082
;
10821083

10831084
exit_expr:

0 commit comments

Comments
 (0)