From ec758d95b03dcf94f9e7d020bf62a1ed62700044 Mon Sep 17 00:00:00 2001 From: Kayla Daniels Date: Fri, 5 Sep 2014 12:11:27 -0400 Subject: [PATCH] updated package variable in gathering requirements --- src/Composer/Command/InitCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index a44546b73..78c3ae211 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -335,9 +335,9 @@ EOT $exactMatch = null; $choices = array(); - foreach ($matches as $position => $package) { - $choices[] = sprintf(' %5s %s', "[$position]", $package['name']); - if ($package['name'] === $package) { + foreach ($matches as $position => $foundPackage) { + $choices[] = sprintf(' %5s %s', "[$position]", $foundPackage['name']); + if ($foundPackage['name'] === $package) { $exactMatch = true; break; }