mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Fix issue when multiple paths are mapped to one dir in the show command
This commit is contained in:
parent
0eb2821733
commit
e330763c5f
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue