Phpinsights: Composer dependencies issue on installation

Created on 24 Apr 2020  路  4Comments  路  Source: nunomaduro/phpinsights

| Q | A
| ---------------- | -----
| Bug report? | yes
| Feature request? | no
| Library version | 1.14.0

I'm experiencing the following composer dependencies issue when trying to install on a fresh Laravel 7.7.1 using the command composer require nunomaduro/phpinsights --dev:

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

  Problem 1
    - Conclusion: don't install phploc/phploc 5.0.0
    - Conclusion: don't install nunomaduro/phpinsights v1.14.0
    - Conclusion: remove sebastian/version 2.0.1
    - Installation request for symfony/console (locked at v5.0.7) -> satisfiable by symfony/console[v5.0.7].
    - Installation request for nunomaduro/phpinsights ^1.14 -> satisfiable by nunomaduro/phpinsights[v1.14.0, v1.x-dev].
    - Conclusion: don't install sebastian/version 2.0.1
    - nunomaduro/phpinsights v1.x-dev requires phploc/phploc ^5.0|^6.0 -> satisfiable by phploc/phploc[5.0.0, 6.0.0, 6.0.1, 6.0.2, 6.0.x-dev].
    - phploc/phploc 6.0.0 requires sebastian/version ^3.0 -> satisfiable by sebastian/version[3.0.0, 3.0.x-dev].
    - phploc/phploc 6.0.1 requires sebastian/version ^3.0 -> satisfiable by sebastian/version[3.0.0, 3.0.x-dev].
    - phploc/phploc 6.0.2 requires sebastian/version ^3.0 -> satisfiable by sebastian/version[3.0.0, 3.0.x-dev].
    - phploc/phploc 6.0.x-dev requires sebastian/version ^3.0 -> satisfiable by sebastian/version[3.0.0, 3.0.x-dev].
    - Can only install one of: sebastian/version[3.0.0, 2.0.1].
    - Can only install one of: sebastian/version[3.0.x-dev, 2.0.1].
    - Installation request for sebastian/version (locked at 2.0.1) -> satisfiable by sebastian/version[2.0.1].


Installation failed, reverting ./composer.json to its original content.

Most helpful comment

@Naxon You should first upgrade you PHPunit to v9.0+ and then you can install Phpinsights:

composer require --dev phpunit/phpunit:^9.0 --update-with-dependencies

All 4 comments

@Naxon You should first upgrade you PHPunit to v9.0+ and then you can install Phpinsights:

composer require --dev phpunit/phpunit:^9.0 --update-with-dependencies

@50bhan it worked, Thank's

@Naxon @50bhan Can you pull request that workaround to the docs?

@nunomaduro Yeah I can do that in couple of minutes.

Was this page helpful?
0 / 5 - 0 ratings