phpdoctor
phpdoctor copied to clipboard
Unexpected 'new' (T_NEW) in /var/www/html/phpdoctor/classes/phpDoctor.php on line 561
PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/html/phpdoctor/classes/phpDoctor.php on line 561
Relevant lines reads:
$rootDoc =& new rootDoc($this);
New clone from Github repo on Ubuntu 16.04.
Running PHP version 7.0.15-0ubuntu0.16.04.4
Looking at the docs in Migrating from PHP 5.6.x to PHP 7.0.x, It appears this is a PHP 7 issue - Under the section 'New objects cannot be assigned by reference', the line $c =& new C; is added as example of invalid code.
Blindly tried to fix in https://github.com/jamjar919/phpdoctor but produces duplicate output.