composer
composer copied to clipboard
Add failing test and fix attempt
Refs https://github.com/sebastianbergmann/phpunit/pull/5661
Providers which are not required by anything should not be installable. However the only way to fix this is to make every package require back everything that requires it, to avoid dangling providers being selected.
This may use up too much memory and CPU to be worth fixing, but we'll try here.. This first attempt works for the new test but it does break other things:
- removal of unused packages, I assume because they now have back-requires keeping them selected
- detection of dev require vs require, also probably due to the back requires making it all appear to be non-dev requires