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

Can't use with PHPUnit 11 #678

Open
mwikberg-virta opened this issue Apr 10, 2024 · 5 comments
Open

Can't use with PHPUnit 11 #678

mwikberg-virta opened this issue Apr 10, 2024 · 5 comments

Comments

@mwikberg-virta
Copy link

Q A
Bug report? yes
Feature request? no
Library version 2.11.00

Wanted to upgrade PHPUnit in one project, but due to phpinsigts (mostly just the specified requirement ranges), it's not possible.

Simplest test case I could come up with is:

$ composer require --dev phpunit/phpunit=^11.0 nunomaduro/phpinsights
./composer.json has been created
Running composer update phpunit/phpunit nunomaduro/phpinsights
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpunit/php-file-iterator[3.0.0, ..., 3.0.2] require php ^7.3 -> your php version (8.3.4) does not satisfy that requirement.
    - Root composer.json requires phpunit/phpunit ^11.0 -> satisfiable by phpunit/phpunit[11.0.0, ..., 11.1.1].
    - cmgmyr/phploc 8.0.3 requires phpunit/php-file-iterator ^3.0|^4.0 -> satisfiable by phpunit/php-file-iterator[3.0.0, ..., 3.0.6, 4.0.0, 4.0.1, 4.0.2, 4.1.0].
    - You can only install one version of a package, so only one of these can be installed: phpunit/php-file-iterator[3.0.0, ..., 3.0.6, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 5.0.0].
    - nunomaduro/phpinsights v2.11.0 requires cmgmyr/phploc ^8.0.3 -> satisfiable by cmgmyr/phploc[8.0.3].
    - phpunit/phpunit[11.0.0, ..., 11.1.1] require phpunit/php-file-iterator ^5.0 -> satisfiable by phpunit/php-file-iterator[5.0.0].
    - Root composer.json requires nunomaduro/phpinsights ^2.11 -> satisfiable by nunomaduro/phpinsights[v2.11.0].

Installation failed, deleting ./composer.json.

There is a PR open for the phploc dependency, and as far I can tell, everything else already has compatible versions, so they just need a bump.

@Xor767
Copy link

Xor767 commented May 9, 2024

Hi guys, is phpinsights dead 🪦?

@timoteo7
Copy link

timoteo7 commented Jun 24, 2024

"Running composer update phpunit/phpunit nunomaduro/phpinsights --with-all-dependencies"
Return :

Problem 1
    - Root composer.json requires nunomaduro/phpinsights * -> satisfiable by nunomaduro/phpinsights[v1.0.0, ..., v1.14.1, v2.0.0, ..., v2.11.0].
    - phpunit/phpunit[11.0.0, ..., 11.2.5] require sebastian/diff ^6.0 -> satisfiable by sebastian/diff[6.0.0, 6.0.1].
    - Conclusion: don't install sebastian/diff 6.0.1 (conflict analysis result)
    - Root composer.json requires phpunit/phpunit ^11.0 -> satisfiable by phpunit/phpunit[11.0.0, ..., 11.2.5].

@jonnott
Copy link

jonnott commented Jul 9, 2024

This is preventing upgrading projects to PHPUnit 11.x under Laravel 11.x. Any chance of adding PHPUnit 11.x to the list in composer.json @nunomaduro ?

@nonamez
Copy link

nonamez commented Sep 9, 2024

Same problem after upgrading to Laravel 11. Any news on the version bump?

@RSickenberg
Copy link

This should fix #692

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

6 participants