Skip to content

Commit 379b8f2

Browse files
committed
Renamed new_(with|without)_parentheses to new_(dereferenceable|non_dereferenceable)
1 parent 416fe7d commit 379b8f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Zend/zend_language_parser.y

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
255255
%type <ast> extends_from parameter optional_type_without_static argument global_var
256256
%type <ast> static_var class_statement trait_adaptation trait_precedence trait_alias
257257
%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
259259
%type <ast> internal_functions_in_yacc
260260
%type <ast> exit_expr scalar backticks_expr lexical_var function_call member_name property_name
261261
%type <ast> variable_class_name dereferenceable_scalar constant class_constant
@@ -1123,7 +1123,7 @@ anonymous_class:
11231123
}
11241124
;
11251125

1126-
new_with_parentheses:
1126+
new_dereferenceable:
11271127
T_NEW class_name_reference argument_list
11281128
{ $$ = zend_ast_create(ZEND_AST_NEW, $2, $3); }
11291129
| T_NEW anonymous_class
@@ -1132,7 +1132,7 @@ new_with_parentheses:
11321132
{ zend_ast_with_attributes($3->child[0], $2); $$ = $3; }
11331133
;
11341134

1135-
new_without_parentheses:
1135+
new_non_dereferenceable:
11361136
T_NEW class_name_reference
11371137
{ $$ = zend_ast_create(ZEND_AST_NEW, $2, zend_ast_create_list(0, ZEND_AST_ARG_LIST)); }
11381138
;
@@ -1230,7 +1230,7 @@ expr:
12301230
$$ = $2;
12311231
if ($$->kind == ZEND_AST_CONDITIONAL) $$->attr = ZEND_PARENTHESIZED_CONDITIONAL;
12321232
}
1233-
| new_without_parentheses { $$ = $1; }
1233+
| new_non_dereferenceable { $$ = $1; }
12341234
| expr '?' expr ':' expr
12351235
{ $$ = zend_ast_create(ZEND_AST_CONDITIONAL, $1, $3, $5); }
12361236
| expr '?' ':' expr
@@ -1448,7 +1448,7 @@ callable_variable:
14481448
| array_object_dereferenceable T_NULLSAFE_OBJECT_OPERATOR property_name argument_list
14491449
{ $$ = zend_ast_create(ZEND_AST_NULLSAFE_METHOD_CALL, $1, $3, $4); }
14501450
| function_call { $$ = $1; }
1451-
| new_with_parentheses { $$ = $1; }
1451+
| new_dereferenceable { $$ = $1; }
14521452
;
14531453

14541454
variable:

0 commit comments

Comments
 (0)