Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use 'PhpParser\Node\Scalar\String' as class name #248

Closed
jedahan opened this issue Feb 22, 2016 · 2 comments
Closed

Cannot use 'PhpParser\Node\Scalar\String' as class name #248

jedahan opened this issue Feb 22, 2016 · 2 comments

Comments

@jedahan
Copy link

jedahan commented Feb 22, 2016

When trying to run psysh in a test ( psysh.org ), I get this error:

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

pake unit_nosetup SomeTest.php
>> exec         ENVIRONMENT=testing TMP_L…est.php || echo 'Test Failure'
#!/usr/bin/env php
PHPUnit 5.0.10 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.0.3 with Xdebug 2.4.0RC4
Configuration: /home/jdehan/dev/project/tests/phpunit/phpunit.xml


Starting test 'Test_HelperTest::testValid'.


Fatal error: Cannot use 'PhpParser\Node\Scalar\String' as class name as it is reserved in /usr/share/composer/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php on line 86
Test Failure

Any suggestions on how to track this down better?

@nikic
Copy link
Owner

nikic commented Feb 22, 2016

You're probably using a very old version of psysh. Can you try updating it?

@jedahan
Copy link
Author

jedahan commented Feb 22, 2016

ok weird, installing it locally didn't work, but globally did. Looks like my dev environment is all sorts of funky. Thanks for the quick reply!

@jedahan jedahan closed this as completed Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants