Parcourir la source

Merge remote-tracking branch 'AydinHassan/hotfix/init-virtual-packages'

Jordi Boggiano il y a 10 ans
Parent
commit
5c42cc8c8c
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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)) {
                 $exactMatch = null;
                 $choices = array();