Fix require use repos

Fixes https://github.com/composer/composer/issues/3505