1
0
Fork 0

Avoid calling findPackage for non-platform packages

pull/8377/head
Jordi Boggiano 2019-10-24 11:16:42 +02:00 committed by GitHub
parent 4c8e41d9a9
commit d73cef3fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ EOT
continue;
}
foreach ($package['suggest'] as $suggestion => $reason) {
if (null !== $platform->findPackage($suggestion, '*')) {
if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $suggestion) && null !== $platform->findPackage($suggestion, '*')) {
continue;
}
if (!isset($installed[$suggestion])) {