Files
PHP-Parser/test/code/parser/expr/newWithoutClass.test
Nikita Popov 9a5d5c112c Add newline at end of file for many tests
Add the newline in reconstructTest() and run updateTests.php, to
reduce spurious diffs in the future.
2023-05-20 19:18:11 +02:00

17 lines
245 B
Plaintext

New without a class
-----
<?php
new;
-----
Syntax error, unexpected ';' from 2:4 to 2:4
array(
0: Stmt_Expression(
expr: Expr_New(
class: Expr_Error(
)
args: array(
)
)
)
)