Trismegiste/Mondrian

Cannot use 'PhpParser\Node\Scalar\String' as class name as it is reserved in phar://...

Opened this issue · 5 comments

Hello!

It appears you have an older version of nikic/php-parser as a dependency. Versions earlier than 1.3 cause the following error under PHP 7:

PHP Fatal error: Cannot use 'PhpParser\Node\Scalar\String' as class name as it is reserved in phar:///usr/local/bin/mondrian.phar/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php on line 86

More info: nikic/PHP-Parser#182 (comment)

Would it be possible to update to at least v1.3 of nikic/php-parser?

Thanks!

Ian

Confirming this is still an issue.

@mambax7 have you considered sending a PR here?

It's not my fork...

As this is an issue as of PHP 7.0, an option is to use XAMPP with PHP v6.