Make sure we compare packages to their latest without aliases, fixes #9357

main
Jordi Boggiano 4 years ago
parent 86072a705b
commit 90a6aa7ec0
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -1227,7 +1227,12 @@ EOT
$targetVersion = '^' . $package->getVersion();
}
return $versionSelector->findBestCandidate($name, $targetVersion, $bestStability);
$candidate = $versionSelector->findBestCandidate($name, $targetVersion, $bestStability);
while ($candidate instanceof AliasPackage) {
$candidate = $candidate->getAliasOf();
}
return $candidate;
}
private function getRepositorySet(Composer $composer)

Loading…
Cancel
Save