Hi,
I have this issue, i need to fork a package so i can update the PHP requirement to allow v8. But there is a caveat, this package also has a package as requirement that needs to have PHP updated to v8 as well.
I tried to use the same logic that i have in my local composer.json project in the parent fork, but it didnt work and it gave me an error. Not an expert on this matter :)
I did something like this:
In my local composer.json project:
"require": {
"something/special": "dev-php8"
},
"repositories": [
{
"type": "vcs",
}
]
And inside the composer.json of something/special i have the same logic:
"require": {
"something/other-special": "dev-php8"
},
"repositories": [
{
"type": "vcs",
}
]
Error from composer:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires something/special dev-php8 -> satisfiable by something/special[dev-php8].
- something/special dev-php8 requires something/other-special dev-php8 -> found something/other-special[dev-master, 0.1, 0.1.1, 0.1.2] but it does not match the constraint.
My question is, what is best way to solve this?
Thanks,
Luís