Composer will (or at least should) install the very same latest version anyway
For a regular composer install (without a composer.lock) or composer update, yes, it will. However, we run our CI pipeline both with the highest and lowest allowed Composer dependencies (to check for problems related to different versions of our dependencies), so for the "lowest" dependency set, we should in theory have been using PHPUnit 9.5, but for some reason indeed were already using PHPUnit 9.6: https://github.com/MyIntervals/emogrifier/actions/runs/6125941206/job/16628972405
For a regular
composer install
(without acomposer.lock
) orcomposer update
, yes, it will. However, we run our CI pipeline both with the highest and lowest allowed Composer dependencies (to check for problems related to different versions of our dependencies), so for the "lowest" dependency set, we should in theory have been using PHPUnit 9.5, but for some reason indeed were already using PHPUnit 9.6: https://github.com/MyIntervals/emogrifier/actions/runs/6125941206/job/16628972405