BUG Fix incorrect array key

Fixes issue found in #1
This commit is contained in:
Damian Mooyman 2017-07-17 17:47:18 +12:00
parent 8006dee7d9
commit 8a53a325b0
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -107,7 +107,7 @@ trait RecipeCommandBehaviour
// Check requires
$requires = $this->getComposer()->getPackage()->getRequires();
if (isset($requires[$recipe])) {
return $provides[$recipe]->getPrettyConstraint();
return $requires[$recipe]->getPrettyConstraint();
}
// No existing version