php-parser/test/code/prettyPrinter/expr/newVariable.test

11 lines
209 B
Plaintext
Raw Normal View History

Parentheses for complex new/instanceof expressions
-----
<?php
new ('a' . 'b');
$x instanceof ('a' . 'b');
$x instanceof ($y++);
-----
!!php7
new ('a' . 'b')();
$x instanceof ('a' . 'b');
$x instanceof ($y++);