diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 7241b1ef8..f83f9fd74 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/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();