vd/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test
2018-11-05 09:26:30 +08:00

25 lines
335 B
Plaintext

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: Stmt_Expression(
expr: Expr_New(
class: Expr_Error(
)
args: array(
)
)
)
)