From 78a8a02978313f334f7a69c7e70f5a2b4ccec2d1 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 29 Apr 2016 15:25:14 +0400 Subject: [PATCH] Ignore the unfound packages --- src/Composer/Command/ShowCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index cc5b55ea3..28447ee2d 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -275,7 +275,12 @@ EOT if ($showVersion) { $versionLength = max($versionLength, strlen($package->getFullPrettyVersion())); if ($showLatest) { + $latestPackage = $this->findLatestPackage($package, $composer, $phpVersion); + if ($latestPackage === false) { + continue; + } + $latestPackages[$package->getPrettyName()] = $latestPackage; $latestLength = max($latestLength, strlen($latestPackage->getFullPrettyVersion())); }