瀏覽代碼

Fix issue when multiple paths are mapped to one dir in the show command

Jordi Boggiano 11 年之前
父節點
當前提交
e330763c5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Command/ShowCommand.php

+ 1 - 1
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));