Skip to content

Instantly share code, notes, and snippets.

@rela589n
Last active June 19, 2024 08:48
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 3-step the scenario:

Step 1:

Upgrade all dev packages to the latest versions, so that CI would be able to run on new set of dev-packages.

Step 2:

  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

Step 3: 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