Browse Source

updated package variable in gathering requirements

Kayla Daniels 10 years ago
parent
commit
ec758d95b0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Composer/Command/InitCommand.php

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

@@ -335,9 +335,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;
                     }