From bfbcf03a6b656f7e68cc082b7393188a379d5019 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 14 Oct 2016 13:18:15 +0200 Subject: [PATCH] Fix ShowCommand --- src/Composer/Command/ShowCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();