mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 17:47:23 +01:00
17 lines
303 B
Plaintext
17 lines
303 B
Plaintext
|
Non-simple variables are forbidden in PHP 7
|
||
|
-----
|
||
|
<?php
|
||
|
global $$foo->bar;
|
||
|
-----
|
||
|
!!php7
|
||
|
Syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' from 2:13 to 2:14
|
||
|
array(
|
||
|
0: Expr_ConstFetch(
|
||
|
name: Name(
|
||
|
parts: array(
|
||
|
0: bar
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|