diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 8aa734630..7dd9322e2 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -333,8 +333,7 @@ EOT } while (null !== $package = $dialog->ask($output, $prompt)) { - $matches = $this->findPackages($package); - + $matches = array_values($this->findPackages($package)); if (count($matches)) { $output->writeln(array( '',