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

PHP Fatal error: Cannot instantiate interface PhpParser\Parser in yakpro-po-master/yakpro-po.php on line 32 #2

Closed
ehcpdeveloper opened this issue Oct 20, 2015 · 2 comments

Comments

@ehcpdeveloper
Copy link

PHP Fatal error: Cannot instantiate interface PhpParser\Parser in yakpro-po-master/yakpro-po.php on line 32

when I try to run, I receive this error.

@pk-fr
Copy link
Owner

pk-fr commented Oct 20, 2015

I didn't found any problem using my previously cloned PhpParser version.
I tried to clone a new one, and have been able to reproduce your bug... after having to modify the [] syntax for arrays... (my development machine is on Ubuntu 12.04 LTS and its php version is 5.3)

diagnostic is the following:

Currently, yakpro-po only works on 1.x branch of PhpParser.
A new 2.0.0 alpha1 PHP Parser has been released with a different API, and drop support for PHP < 5.5
unfortunately, This new branch is the default one.

Please use :
git clone --branch=1.x https://github.com/nikic/PHP-Parser.git

I will consider using the new 2.0 branch when it is no more Beta or RC.

@pk-fr
Copy link
Owner

pk-fr commented Oct 21, 2015

Published the 1.7.2 release of yakpro-po, with check for 1.x branch of PHP Parser.
Emits an error message and stops when PHP Parser 1.x branch is not detected!

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