Welcome to mirror list, hosted at ThFree Co, Russian Federation.

globalNonSimpleVarError.test « uvs « expr « parser « code « test « php-parser « nikic « vendor - github.com/nextcloud/php-static-scanner-instrumentalization.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c4e4a48e57aba2d174ab6c0ed9139ab72e01c6f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
            )
        )
    )
)