PHP Classes

File: vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test   Download  
File: vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 481 bytes
 

Contents

Class file image Download
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: Expr_ConstFetch(
       
name: Name(
           
parts: array(
               
0: bar
           
)
        )
    )
)