@@ -255,7 +255,7 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
255
255
%type <ast> extends_from parameter optional_type_without_static argument global_var
256
256
%type <ast> static_var class_statement trait_adaptation trait_precedence trait_alias
257
257
%type <ast> absolute_trait_method_reference trait_method_reference property echo_expr
258
- %type <ast> new_with_parentheses new_without_parentheses anonymous_class class_name class_name_reference simple_variable
258
+ %type <ast> new_dereferenceable new_non_dereferenceable anonymous_class class_name class_name_reference simple_variable
259
259
%type <ast> internal_functions_in_yacc
260
260
%type <ast> exit_expr scalar backticks_expr lexical_var function_call member_name property_name
261
261
%type <ast> variable_class_name dereferenceable_scalar constant class_constant
@@ -1123,7 +1123,7 @@ anonymous_class:
1123
1123
}
1124
1124
;
1125
1125
1126
- new_with_parentheses :
1126
+ new_dereferenceable :
1127
1127
T_NEW class_name_reference argument_list
1128
1128
{ $$ = zend_ast_create(ZEND_AST_NEW, $2 , $3 ); }
1129
1129
| T_NEW anonymous_class
@@ -1132,7 +1132,7 @@ new_with_parentheses:
1132
1132
{ zend_ast_with_attributes($3 ->child[0 ], $2 ); $$ = $3 ; }
1133
1133
;
1134
1134
1135
- new_without_parentheses :
1135
+ new_non_dereferenceable :
1136
1136
T_NEW class_name_reference
1137
1137
{ $$ = zend_ast_create(ZEND_AST_NEW, $2 , zend_ast_create_list(0 , ZEND_AST_ARG_LIST)); }
1138
1138
;
@@ -1230,7 +1230,7 @@ expr:
1230
1230
$$ = $2 ;
1231
1231
if ($$ ->kind == ZEND_AST_CONDITIONAL) $$ ->attr = ZEND_PARENTHESIZED_CONDITIONAL;
1232
1232
}
1233
- | new_without_parentheses { $$ = $1 ; }
1233
+ | new_non_dereferenceable { $$ = $1 ; }
1234
1234
| expr ' ?' expr ' :' expr
1235
1235
{ $$ = zend_ast_create(ZEND_AST_CONDITIONAL, $1 , $3 , $5 ); }
1236
1236
| expr ' ?' ' :' expr
@@ -1448,7 +1448,7 @@ callable_variable:
1448
1448
| array_object_dereferenceable T_NULLSAFE_OBJECT_OPERATOR property_name argument_list
1449
1449
{ $$ = zend_ast_create(ZEND_AST_NULLSAFE_METHOD_CALL, $1 , $3 , $4 ); }
1450
1450
| function_call { $$ = $1 ; }
1451
- | new_with_parentheses { $$ = $1 ; }
1451
+ | new_dereferenceable { $$ = $1 ; }
1452
1452
;
1453
1453
1454
1454
variable :
0 commit comments