mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 00:59:49 +01:00
9f5ec5a69a
Conflicts: lib/PhpParser/Parser/Php5.php lib/PhpParser/Parser/Php7.php test/code/parser/stmt/class/name.test
27 lines
542 B
Plaintext
27 lines
542 B
Plaintext
Non-simple variables are forbidden in PHP 7
|
|
-----
|
|
<?php
|
|
global $$foo->bar;
|
|
-----
|
|
!!php7
|
|
Syntax error, unexpected T_OBJECT_OPERATOR, expecting ';' from 2:13 to 2:14
|
|
array(
|
|
0: Stmt_Global(
|
|
vars: array(
|
|
0: Expr_Variable(
|
|
name: Expr_Variable(
|
|
name: foo
|
|
)
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name(
|
|
parts: array(
|
|
0: bar
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |