From d73cef3fb4d03da5fc846604caa629bf684da79c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 24 Oct 2019 11:16:42 +0200 Subject: [PATCH] Avoid calling findPackage for non-platform packages --- src/Composer/Command/SuggestsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/SuggestsCommand.php b/src/Composer/Command/SuggestsCommand.php index 13f742023..a7ec3dad8 100644 --- a/src/Composer/Command/SuggestsCommand.php +++ b/src/Composer/Command/SuggestsCommand.php @@ -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])) {