1
0
Fork 0

Merge pull request #5267 from kamranahmedse/master

Ignore it for unfound packages
pull/5276/head
Jordi Boggiano 2016-04-29 15:11:17 +01:00
commit 7d246196db
1 changed files with 5 additions and 0 deletions

View File

@ -275,7 +275,12 @@ EOT
if ($showVersion) { if ($showVersion) {
$versionLength = max($versionLength, strlen($package->getFullPrettyVersion())); $versionLength = max($versionLength, strlen($package->getFullPrettyVersion()));
if ($showLatest) { if ($showLatest) {
$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion); $latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
if ($latestPackage === false) {
continue;
}
$latestPackages[$package->getPrettyName()] = $latestPackage; $latestPackages[$package->getPrettyName()] = $latestPackage;
$latestLength = max($latestLength, strlen($latestPackage->getFullPrettyVersion())); $latestLength = max($latestLength, strlen($latestPackage->getFullPrettyVersion()));
} }