Best practices for upgrading frameworks? #11267
-
I often come to projects where they use an outdated framework. At the moment it is often a lot of manual work because there is no command to upgrade all the a newest version as discussed in this feature request. How do you handle such situations? Do you have some rules you always follow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is For major versions I usually just edit it manually in composer.json, selecting all packages I want to edit with multi-cursor edit then replacing all constraints by |
Beta Was this translation helpful? Give feedback.
There is
composer bump
which can help with that, but it won't allow major upgrades. For minor versions though you could docomposer update framework/* && composer bump framework/*
.For major versions I usually just edit it manually in composer.json, selecting all packages I want to edit with multi-cursor edit then replacing all constraints by
^2
or whatever the next major is.