Cannot use 'PhpParser\Node\Scalar\String' as class name as it is reserved in phar://...
Opened this issue · 5 comments
thinkspill commented
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
EmperorArthur commented
Confirming this is still an issue.
mambax7 commented
Use the fork:
https://github.com/dirx/Mondrian/tree/php7-support
mambax7 commented
It's not my fork...
BurninLeo commented
As this is an issue as of PHP 7.0, an option is to use XAMPP with PHP v6.