Преглед изворни кода

Merge remote-tracking branch 'kayladnls/kayla'

Jordi Boggiano пре 10 година
родитељ
комит
d4062a5594
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/Composer/Command/InitCommand.php

+ 3 - 3
src/Composer/Command/InitCommand.php

@@ -344,9 +344,9 @@ EOT
 
                 $exactMatch = null;
                 $choices = array();
-                foreach ($matches as $position => $package) {
-                    $choices[] = sprintf(' <info>%5s</info> %s', "[$position]", $package['name']);
-                    if ($package['name'] === $package) {
+                foreach ($matches as $position => $foundPackage) {
+                    $choices[] = sprintf(' <info>%5s</info> %s', "[$position]", $foundPackage['name']);
+                    if ($foundPackage['name'] === $package) {
                         $exactMatch = true;
                         break;
                     }