Closed macbre closed 8 years ago
http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.new-by-ref
Add a check for the following use of new operator which is no longer supported:
new
<?php class C {} $c =& new C; ?>
Parse error: syntax error, unexpected 'new' (T_NEW) in /tmp/test.php on line 3
This code will generate the following entry in the report:
* newOperatorWithReference * Line 123: `$c =& new C;` * Line 124: `$c =&new C;`
Looks good to me. Thank you!
http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.new-by-ref
Add a check for the following use of
new
operator which is no longer supported:Parse error: syntax error, unexpected 'new' (T_NEW) in /tmp/test.php on line 3
This code will generate the following entry in the report: