composer config platform.php 7.0.30 # Fake PHP 7.0.30
composer update --with-all-dependencies symfony/* # Update symfony to the latest 7.0.30 compatible version
composer config --unset platform.php # Remove the faked PHP (or remove the entire config section if its empty)
composer update --lock # Rewrite the composer.lock to remove the platform-override and recalculate the hash
Created
May 4, 2018 12:32
-
-
Save t3easy/f91108d80e74fda2f884eb7c466347cd to your computer and use it in GitHub Desktop.
Lock composer packages for a specific php version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment