Explorar o código

Ignore the unfound packages

Kamran Ahmed %!s(int64=9) %!d(string=hai) anos
pai
achega
78a8a02978
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/Composer/Command/ShowCommand.php

+ 5 - 0
src/Composer/Command/ShowCommand.php

@@ -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()));
                             }
                             }