Trismegiste / Mondrian

A static php code analysis tool using the Graph Theory
http://trismegiste.github.io/Mondrian/
397 stars 22 forks source link

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

Open thinkspill opened 8 years ago

thinkspill commented 8 years ago

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: https://github.com/nikic/PHP-Parser/issues/182#issuecomment-109368749

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

Thanks!

Ian

EmperorArthur commented 7 years ago

Confirming this is still an issue.

mambax7 commented 7 years ago

Use the fork: https://github.com/dirx/Mondrian/tree/php7-support

jakzal commented 7 years ago

@mambax7 have you considered sending a PR here?

mambax7 commented 7 years ago

It's not my fork...

BurninLeo commented 3 years ago

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