From 432cdbcb313669ffe9c0b10da4f79cead0a0e44d Mon Sep 17 00:00:00 2001 From: Aydin Date: Thu, 2 Oct 2014 12:07:31 +0100 Subject: [PATCH] Allow to select virtual packages --- src/Composer/Command/InitCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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( '',