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

Using nikic/php-parser version 4 cause errors #55

Open
edmondscommerce opened this issue Aug 29, 2018 · 3 comments
Open

Using nikic/php-parser version 4 cause errors #55

edmondscommerce opened this issue Aug 29, 2018 · 3 comments

Comments

@edmondscommerce
Copy link

Using the v4 version of nikic/php-parser causes various errors when the code is run.

This is not showing up in the tests at the moment because the require-dev section needs sami which locks the version to 3. Removing this requirement will bring in the latest version and show the errors.

I've done this in a fork so the errors can be seen, the travis output is here https://travis-ci.org/edmondscommerce/php-code-generator/jobs/422187128

@gossi
Copy link
Member

gossi commented Aug 30, 2018

Welcome to dependency hell 👿

Thanks for making them visible. Any idea how to run tests against v4 of php-parser, while maintaining dep to sami?

@gossi
Copy link
Member

gossi commented Nov 17, 2018

Just looked for alternatives of sami (since they stopped it). There is phpDox and apiGen. Switichting to either of them, I can drop the sami dependency and fully incorporate php-parser v4.

@gossi
Copy link
Member

gossi commented Nov 24, 2018

Hey @edmondscommerce can you try with recent master? I dropped sami and everything else that prevented me from updating. I made php 7.2 as a minimum version, since 7.1 reach(ed) EOL. Can you try and see if it works for you?

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