1
0
Fork 0

Fix variable name

pull/7995/head
Jordi Boggiano 2019-02-18 16:59:09 +01:00
parent 936933fa66
commit d381b3a781
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 1 deletions

View File

@ -313,9 +313,11 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
} }
} }
} }
// add aliases of matched packages even if they did not match the constraint
foreach ($candidates as $candidate) { foreach ($candidates as $candidate) {
if ($candidate instanceof AliasPackage) { if ($candidate instanceof AliasPackage) {
if (isset($result[spl_object_hash($candidate->getAliasOf())])) { if (isset($matches[spl_object_hash($candidate->getAliasOf())])) {
$matches[spl_object_hash($candidate)] = $candidate; $matches[spl_object_hash($candidate)] = $candidate;
} }
} }