Great tip by Mattias:
TIL: you can fake package versions in composer using the "as" alias. Useful to force install certain versions while keeping other dependencies in check! 👍https://t.co/VzmMRCCoR5
— Mattias Geniar (@mattiasgeniar) April 16, 2020
You can alias directly when requiring a package:
composer require monolog/monolog:"dev-bugfix as 1.0.x-dev"