ソースを参照

Allow to select virtual packages

Aydin 10 年 前
コミット
432cdbcb31
1 ファイル変更1 行追加2 行削除
  1. 1 2
      src/Composer/Command/InitCommand.php

+ 1 - 2
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(
                     '',