drupal-civicrm/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test

23 lines
278 B
Plaintext
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
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(
)
)
)