In nelmio/alice, I use SYMFONY_REQUIRE to test various Symfony versions.
In nelmio/alice#1324, I added a build for SYMFONY_REQUIRE="8.*", yet some Symfony7 dependencies were still installed:
https://github.com/nelmio/alice/actions/runs/20063055922/job/57545083895?pr=1324#step:7:30
This was caused by me missing to allow a dependency for Symfony 8, hence symfony/framework-bundle couldn't be installed in v8, but the others that could were.
I assumed the Symfony require would enforce the required version, i.e. that if the constraints failed it would fail entirely, rather than bypassing the constraint if it can.
Is my assumption correct, i.e. it is a bug somewhere either in Flex or my setup, or is it the expected result?