Summary
Version v6.0.7 changed the illuminate/* dependency constraints from ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 to >=7.0,<=12.0. This is a breaking regression that prevents installation with any illuminate/* version above 12.0.0 (e.g. 12.1.0, 12.56.0, etc.).
Root Cause
The constraint >=7.0,<=12.0 caps the maximum resolved version at exactly 12.0.0. Any patch or minor release (12.0.1, 12.5.0, 12.56.0, …) is excluded.
The previous constraint ^12.0 correctly resolved to >=12.0.0, <13.0.0, allowing all 12.x releases.
| Constraint |
12.0.0 |
12.0.1 |
12.56.0 |
^12.0 (before) |
✅ |
✅ |
✅ |
<=12.0 (after) |
✅ |
❌ |
❌ |
Reproduction
composer require kalnoy/nestedset:^6.0.7 laravel/framework:^12.1
Fails with:
Your requirements could not be resolved to an installable set of packages.
Downgrading to v6.0.6 resolves the issue.
Suggested Fix
Either revert to the previous constraints:
"illuminate/database": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/events": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"
Or, if a simplified range is preferred, use <13.0 instead of <=12.0:
"illuminate/database": ">=7.0,<13.0",
"illuminate/events": ">=7.0,<13.0",
"illuminate/support": ">=7.0,<13.0"
Workaround
Pin to the previous version:
"kalnoy/nestedset": "^6.0.6"
Note: Make sure to also add 6.0.7 to the exclude list or use the exact constraint 6.0.6 to prevent Composer from picking up the broken release.
Summary
Version
v6.0.7changed theilluminate/*dependency constraints from^7.0|^8.0|^9.0|^10.0|^11.0|^12.0to>=7.0,<=12.0. This is a breaking regression that prevents installation with anyilluminate/*version above12.0.0(e.g.12.1.0,12.56.0, etc.).Root Cause
The constraint
>=7.0,<=12.0caps the maximum resolved version at exactly12.0.0. Any patch or minor release (12.0.1,12.5.0,12.56.0, …) is excluded.The previous constraint
^12.0correctly resolved to>=12.0.0, <13.0.0, allowing all12.xreleases.12.0.012.0.112.56.0^12.0(before)<=12.0(after)Reproduction
Fails with:
Downgrading to
v6.0.6resolves the issue.Suggested Fix
Either revert to the previous constraints:
Or, if a simplified range is preferred, use
<13.0instead of<=12.0:Workaround
Pin to the previous version:
Note: Make sure to also add
6.0.7to theexcludelist or use the exact constraint6.0.6to prevent Composer from picking up the broken release.