Sfoglia il codice sorgente

Merge pull request #5784 from nicolas-grekas/fix

Fix ShowCommand
Jordi Boggiano 8 anni fa
parent
commit
88f09919ce
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Composer/Command/ShowCommand.php

+ 1 - 1
src/Composer/Command/ShowCommand.php

@@ -288,7 +288,7 @@ EOT
                             }
                         }
                     } else {
-                        $nameLength = max($nameLength, $package);
+                        $nameLength = max($nameLength, strlen($package));
                     }
                 }
                 list($width) = $this->getApplication()->getTerminalDimensions();