1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

Minor tweaks

This commit is contained in:
Jordi Boggiano 2018-12-04 09:34:32 +01:00
parent 0961e16795
commit e753bf08b1
3 changed files with 4 additions and 1 deletions

View file

@ -527,6 +527,8 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
// TODO what if not, then throw?
if ($this->lazyProvidersUrl) {
foreach ($packageNames as $name => $constraint) {
$name = strtolower($name);
// skip platform packages, root package and composer-plugin-api
if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name || 'composer-plugin-api' === $name) {
continue;