You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version bump to ^5.0 for nikic/php-parser in composer.json or allow both major versions
Out of scope of report
taking into consideration semver of this repo
taking needed work into consideration
trying to reproduce without ApiPlatform present (plain PhpUnit 11 + PHP8.3)
Because I didn't see an Issue for this I thought to create it. Unfortunately, I don't have time to fully flesh out/fix the issues or perform the upgrade and create a PR, otherwise I might look into it a bit.
General info
Question
Answer
Infection version
Latest - attempted installation fails
Test Framework version
PhpUnit 11.0.6
PHP version
8.3.4
Platform
Windows + WSL Ubuntu 22.04.4 LTS, but also php:8.3.4-cli-alpine3.19 Docker image
Github Repo
Related: nikic/php-parser (infection dependency)
Reproduce
Have the above setup (PHP version + ApiPlatform + PhpUnit)
- infection/infection[0.26.17, ..., 0.27.10] require nikic/php-parser ^4.15.1 -> found nikic/php-parser[v4.15.1, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Output with issue
me@my-pc: ~/api (main)$ composer require --dev infection/infection
./composer.json has been updated
Running composer update infection/infection
Loading composer repositories with package information
Restricting packages listed in"symfony/symfony" to "^7.0"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- infection/infection[0.1.0, ..., 0.9.3] require php ^7.0 -> your php version (8.3.4) does not satisfy that requirement.
- infection/infection[0.10.0, ..., 0.11.5] require php ^7.1 -> your php version (8.3.4) does not satisfy that requirement.
- infection/infection[0.12.0, ..., 0.13.6] require php ^7.1.3 -> your php version (8.3.4) does not satisfy that requirement.
- infection/infection[0.14.0, ..., 0.15.3] require php ^7.2.9 -> your php version (8.3.4) does not satisfy that requirement.
- infection/infection[0.16.0, ..., 0.18.1] require php ^7.3 -> your php version (8.3.4) does not satisfy that requirement.
- infection/infection[0.18.2, ..., 0.20.2] require nikic/php-parser ^4.10.2 -> found nikic/php-parser[v4.10.2, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- infection/infection[0.21.0, ..., 0.25.3] require nikic/php-parser ^4.10.3 -> found nikic/php-parser[v4.10.3, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- infection/infection[0.25.4, ..., 0.26.3] require nikic/php-parser ^4.13 -> found nikic/php-parser[v4.13.0, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- infection/infection[0.26.4, ..., 0.26.16] require nikic/php-parser ^4.13.2 -> found nikic/php-parser[v4.13.2, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- infection/infection[0.26.17, ..., 0.27.10] require nikic/php-parser ^4.15.1 -> found nikic/php-parser[v4.15.1, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires infection/infection * -> satisfiable by infection/infection[0.1.0, ..., 0.27.10].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require infection/infection:*" to figure out if any version is installable, or "composer require infection/infection:^2.1"if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The text was updated successfully, but these errors were encountered:
downgrade one of the depedency in your project that requires nikic/php-parser:^5. Can be found by composer why nikic/php-parser) or try other approaches like --with-all-dependecies
Problem:
Unable to install latest
infection/infection
due to non-yet upgraded support for latestnikic/php-parser
dependencyFix:
^5.0
fornikic/php-parser
incomposer.json
or allow both major versionsOut of scope of report
Because I didn't see an Issue for this I thought to create it. Unfortunately, I don't have time to fully flesh out/fix the issues or perform the upgrade and create a PR, otherwise I might look into it a bit.
General info
11.0.6
php:8.3.4-cli-alpine3.19
Docker imagenikic/php-parser
(infection dependency)Reproduce
composer install
for belowcomposer.json
composer require --dev infection/infection
composer.json
PhpUnit config - defaults minus non-working config from default template
phpunit.xml
Attempted infection installation (
composer require --dev
) outputHighlight line:
Output with issue
The text was updated successfully, but these errors were encountered: