Closed lesmyrmidons closed 4 months ago
@lesmyrmidons Composer already gives you a solution for this problem
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
composer require sulu/form-bundle:^2.5 --with-all-dependencies
Another way is todo:
composer require sulu/form-bundle:^2.5 --no-update
composer update
As sulu still supports doctrine collections ^1.0
and ^2.0
: https://github.com/sulu/sulu/blob/647f02faad088672ac0c261d4984ae067a8eda5f/composer.json#L37
The dependency update of doctrine/collections should be targeted with the Symfony 7
support for the FormBundle. But if you want you can create a merge request for the doctrine/collections part feel free.
The doctrine/collections 2 is now also supported with Symfony 7.
Actual Behavior
How does it behave at the moment? The command
composer require sulu/form-bundle:^2.5
failledExpected Behavior
What is the behavior you expect? Error command because the bundle require
doctrine/collections ^1.0
and sulu isdoctrine/collections ^2.2
Steps to Reproduce
What are the steps to reproduce this bug? Please add code examples, screenshots or links to GitHub repositories that reproduce the problem.
Possible Solutions
If you have already ideas how to solve the issue, add them here. (remove this section if not needed)