Merge branch 'PHP-7.4'

* PHP-7.4:
  new_variable '{' expr '}' is deprecated as well
This commit is contained in:
Christoph M. Becker 2019-09-09 19:06:43 +02:00
commit 8aff6627b4
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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