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 · 1 comment
Open

Can't use with PHPUnit 11 #678

mwikberg-virta opened this issue Apr 10, 2024 · 1 comment

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 🪦?

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

2 participants