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

[Bug]: Unable to install Pest 3.x along with Psalm 5.26 #1262

Closed
Lukasss93 opened this issue Sep 17, 2024 · 2 comments
Closed

[Bug]: Unable to install Pest 3.x along with Psalm 5.26 #1262

Lukasss93 opened this issue Sep 17, 2024 · 2 comments
Labels

Comments

@Lukasss93
Copy link

What Happened

I tried to install Pest 3.x along with Psalm 5.26, but I got the following error:

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

Problem 1
- vimeo/psalm[5.26.1, ..., 5.x-dev] require nikic/php-parser ^4.17 -> satisfiable by nikic/php-parser[v4.17.0, ..., 4.x-dev].
- You can only install one version of a package, so only one of these can be installed: nikic/php-parser[v4.10.0, ..., 4.x-dev, v5.0.0alpha1, ..., v5.2.0].
- pestphp/pest-plugin-mutate[v3.0.3, ..., 3.x-dev] require nikic/php-parser ^5.1.0 -> satisfiable by nikic/php-parser[v5.1.0, v5.2.0].
- pestphp/pest[v3.0.5, ..., 3.x-dev] require pestphp/pest-plugin-mutate ^3.0.3 -> satisfiable by pestphp/pest-plugin-mutate[v3.0.3, 3.x-dev].
- Root composer.json requires pestphp/pest ^3.0.5 -> satisfiable by pestphp/pest[v3.0.5, v3.0.6, 3.x-dev].
- Root composer.json requires vimeo/psalm ^5.26.1 -> satisfiable by vimeo/psalm[5.26.1, 5.x-dev].

How to Reproduce

Add "pestphp/pest": "^3.0.5" and "vimeo/psalm": "^5.26.1" to composer.json

Sample Repository

No response

Pest Version

3.0.5

PHP Version

8.2

Operation System

Windows, Linux

Notes

phpstorm64_yFL03RcWuM
@Lukasss93 Lukasss93 added the bug label Sep 17, 2024
@Lukasss93
Copy link
Author

2 possible solutions in my opinion:

@nunomaduro
Copy link
Member

This is a problem with psalm that is using an outdated version of nikic/php-parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants