mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-7.4'
* PHP-7.4: new_variable '{' expr '}' is deprecated as well
This commit is contained in:
commit
8aff6627b4
@ -23,6 +23,7 @@ var_dump(new $weird[0]->foo::$className);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Deprecated: Array and string offset access syntax with curly braces is deprecated in %s on line %d
|
||||
object(stdClass)#%d (0) {
|
||||
}
|
||||
object(stdClass)#%d (0) {
|
||||
|
@ -1189,7 +1189,7 @@ new_variable:
|
||||
| new_variable '[' optional_expr ']'
|
||||
{ $$ = zend_ast_create(ZEND_AST_DIM, $1, $3); }
|
||||
| new_variable '{' expr '}'
|
||||
{ $$ = zend_ast_create(ZEND_AST_DIM, $1, $3); }
|
||||
{ $$ = zend_ast_create_ex(ZEND_AST_DIM, ZEND_DIM_ALTERNATIVE_SYNTAX, $1, $3); }
|
||||
| new_variable T_OBJECT_OPERATOR property_name
|
||||
{ $$ = zend_ast_create(ZEND_AST_PROP, $1, $3); }
|
||||
| class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable
|
||||
|
Loading…
Reference in New Issue
Block a user