view vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test @ 7:848c88cfe644

More layout
author Chris Cannam
date Fri, 05 Jan 2018 13:59:44 +0000
parents 4c8ae668cc8c
children 5fb285c0d0e3
line wrap: on
line source
New without a class
-----
<?php
new;
-----
!!php5
Syntax error, unexpected ';' from 2:4 to 2:4
array(
)
-----
<?php
new;
-----
!!php7
Syntax error, unexpected ';' from 2:4 to 2:4
array(
    0: Expr_New(
        class: Expr_Error(
        )
        args: array(
        )
    )
)