Go through the complete upgrade guide.
Laravel 7x upgrade symfony/console error
when i composer update for laravel 7x, composer.json
"laravel/framework": "^7.29",
I have no reference to symfony/console or any symfony components here, and the laravel docs do not say u must include it - however obviously composer is doing it itself, and the composer lock file does contain references to symfony/console. I thought composer update should take the composer.json and update the lock accordingly ?
The errors are a bunch of this
- Conclusion: don't install symfony/console v5.0.1 (conflict analysis result)
- Conclusion: don't install symfony/console v5.0.2 (conflict analysis result)
...
- laravel/framework[v7.29.0, ..., 7.x-dev] require symfony/console ^5.0 -> satisfiable by symfony/console[v5.0.0-BETA1, ..., 5.x-dev].
- Conclusion: don't install symfony/console 5.0.x-dev (conflict analysis result)
- Root composer.json requires laravel/framework ^7.29 -> satisfiable by laravel/framework[v7.29.0, ..., 7.x-dev].
So why do I need to add symfony/console to my composer.json even though I don't have it in there initially ? The laravel github for 7x does not contain it either.
Surely there is a composer fix ? At the end of the error it says
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
So i tried adding -W but it doesn't seem to do anything different ?
Thanks
I have no reference to symfony/console or any symfony components here, and the laravel docs do not say u >must include it
laravel/framework require it https://github.com/laravel/framework/blob/d07d2abaf238268d25c901797af47e0471bf6997/composer.json#L34
Please or to participate in this conversation.