Avoid calling findPackage for non-platform packages

main
Jordi Boggiano 5 years ago committed by GitHub
parent 4c8e41d9a9
commit d73cef3fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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])) {

Loading…
Cancel
Save