From e330763c5fde6fb49d5d6bb8a2df698fb36895cc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 9 Sep 2013 16:52:59 +0200 Subject: [PATCH] Fix issue when multiple paths are mapped to one dir in the show command --- 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 ed1b629f0..166129989 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -297,7 +297,7 @@ EOT if ($type === 'psr-0') { foreach ($autoloads as $name => $path) { - $output->writeln(($name ?: '*') . ' => ' . ($path ?: '.')); + $output->writeln(($name ?: '*') . ' => ' . (is_array($path) ? implode(', ', $path) : ($path ?: '.'))); } } elseif ($type === 'classmap') { $output->writeln(implode(', ', $autoloads));