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

Composer conflict because phpstan/phpdoc-parser is locked to ~1.5.0 #127

Closed
gndk opened this issue Oct 12, 2022 · 1 comment · Fixed by #128
Closed

Composer conflict because phpstan/phpdoc-parser is locked to ~1.5.0 #127

gndk opened this issue Oct 12, 2022 · 1 comment · Fixed by #128

Comments

@gndk
Copy link
Contributor

gndk commented Oct 12, 2022

When trying to update to 2.4.0, composer install fails because of a conflict. In my case its doctrine/coding-standard, but there could probably also be conflicts with other packages.

The reason is that phpstan/phpdoc-parser was locked to ~1.5.0 (which is a relatively old version, current is 1.9.0) in this commit: 16e8192

The commit message is not related to adding this requirement, so I'm not sure if this was added by accident.

Is locking the phpstan/phpdoc-parser version really necessary or can this tight version constraint be removed again?

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires doctrine/coding-standard 10.0.0 -> satisfiable by doctrine/coding-standard[10.0.0].
    - doctrine/coding-standard 10.0.0 requires slevomat/coding-standard ^8.2 -> satisfiable by slevomat/coding-standard[8.2.0, ..., 8.5.2].
    - slevomat/coding-standard[8.2.0, ..., 8.3.0] require phpstan/phpdoc-parser ^1.6.2 -> satisfiable by phpstan/phpdoc-parser[1.6.2, ..., 1.9.0].
    - slevomat/coding-standard[8.5.0, ..., 8.5.2] require phpstan/phpdoc-parser >=1.7.0 <1.9.0 -> satisfiable by phpstan/phpdoc-parser[1.7.0, 1.8.0].
    - slevomat/coding-standard 8.4.0 requires phpstan/phpdoc-parser >=1.7.0 <1.8.0 -> satisfiable by phpstan/phpdoc-parser[1.7.0].
    - You can only install one version of a package, so only one of these can be installed: phpstan/phpdoc-parser[1.5.0, ..., 1.9.0].
    - weirdan/doctrine-psalm-plugin v2.4.0 requires phpstan/phpdoc-parser ~1.5.0 -> satisfiable by phpstan/phpdoc-parser[1.5.0, 1.5.1].
    - Root composer.json requires weirdan/doctrine-psalm-plugin 2.4.0 -> satisfiable by weirdan/doctrine-psalm-plugin[v2.4.0].
@gndk
Copy link
Contributor Author

gndk commented Oct 12, 2022

I just saw #120

@AndrolGenhald mentioned that the constraint should be removed again after doctrine/coding-standard has a 9.x release, so it seems like this is a leftover.

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

Successfully merging a pull request may close this issue.

1 participant