-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Version conflict with psr/cache v3 #522
Comments
On my side I've installed |
Update psr/simple-cache to v3 from v1 (2017 year) $ composer require psr/simple-cache
Using version ^3.0 for psr/simple-cache
./composer.json has been updated
Running composer update psr/simple-cache
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires nunomaduro/phpinsights ^2.1 -> satisfiable by nunomaduro/phpinsights[v2.1.0].
- nunomaduro/phpinsights v2.1.0 requires psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but it conflicts with your root composer.json require (^3.0).
Installation failed, reverting ./composer.json to its original content. or $ composer outdated
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
psr/simple-cache 1.0.1 3.0.0 Common interfaces for simple caching |
It sounds like circular dependencies are causing an issue. One of the upcoming tasks is to assess dependencies and see how we can handle these - so closing for now for further investigation. |
It seems I'm exeperiencing the opposite problem. I use psr/simple-cache v 2.0 and I'm getting this error:
|
Trying to install PHP Insights into a project that already has
psr/cache
installed at v3 causes Composer to complain. It appears thatsymfony/cache
, which this package relies on, lockspsr/cache
to^1.0|^2.0
. It looks like I already havedoctrine/annotations:^1.13.1
installed in my project (which doesn't limit which version ofpsr/cache
to use), which is in turn required by PHP-CS-Fixer, and (oddly)symfony/routing
.Maybe this is an issue for
symfony/cache
instead, but I figure this would be a good place to start.A very simple fix for anyone else that has this problem but still wants to use PHP Insights:
composer require --dev --with-all-dependencies nunomaduro/phpinsights
- which should automatically downgradepsr/cache
to v2 for you. If that doesn't work, simply requirepsr/cache:^2.0
and then install this package.The text was updated successfully, but these errors were encountered: