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

Upgrade to PHP-Parser 5 #220

Closed
etienneroudeix opened this issue Mar 1, 2024 · 5 comments
Closed

Upgrade to PHP-Parser 5 #220

etienneroudeix opened this issue Mar 1, 2024 · 5 comments

Comments

@etienneroudeix
Copy link

Recent phpunit/phpunit:^11, released on February 2, 2024, requires nikic/php-parser ^5.0.

However, phpstan-rules:2.11.12 requires nikic/php-parser": "^4.14.0.

Upgrading PHPUnit is therefore blocked by phpstan-rules.

PHPUnit looks to me a popular quality tool to run alongside PHPStan, therefore phpstan-rules should consider updating.

@etienneroudeix
Copy link
Author

Note that setting the nikic/php-parser": "^4.14.0 dependency as dev dependency will solve the issue (as in phpstan-strict-rules)

Maybe consider PR #221

@JanTvrdik
Copy link
Member

How will that help, given that phpstan itself requires nikic/php-parser 4?

@etienneroudeix
Copy link
Author

Hello @JanTvrdik , thanks for considering my issue.

Nope PhpStan does not requires nikic/php-parser 4 https://github.com/phpstan/phpstan/blob/1.10.x/composer.json

And phpstan-struct-rules only require it as a dev dependency https://github.com/phpstan/phpstan-strict-rules/blob/1.6.x/composer.json

@janedbal
Copy link
Member

janedbal commented Mar 4, 2024

I'll remove the dependency, it does not make sense to have it there as it wont be used at all.

Thanks for the report.

@janedbal
Copy link
Member

janedbal commented Mar 5, 2024

Removed in #222. Fix released as 2.11.3

@janedbal janedbal closed this as completed Mar 5, 2024
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

3 participants