Skip to content

Instantly share code, notes, and snippets.

@rela589n
Created May 4, 2024 10:16
Show Gist options
  • Save rela589n/27ead47e1bf3757c24caa281d2d52123 to your computer and use it in GitHub Desktop.
Save rela589n/27ead47e1bf3757c24caa281d2d52123 to your computer and use it in GitHub Desktop.
Upgrade project deps

Useful commands:

  • composer outdated (check for outdated packages);
  • composer why-not (check for version constraints not allowing us to upgrade);
  • composer recipes:update - update symfony-packages automatically;

In order to upgrade symfony to a new version, consider following 2-step the scenario:

  1. Upgrade all outdated third-party packages, except symfony/* (though, it would be nice to upgarde symfony to latest minor version).
  2. Run & fix tests
  3. Commit, deploy

Then, when it has all been successfully tested and works correctly, perform the main upgarde:

  1. Upgarde symfony packages (remember, currently there should be not that much dependency issues, because of first phase).
  2. Run & fix tests;
  3. Upgrade rest of the packages to the newest version
  4. Run & fix tests;
  5. Commit, deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment