1
0
Fork 0

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

pull/9374/head
Jordi Boggiano 2020-10-27 21:04:00 +01:00
parent 86072a705b
commit 90a6aa7ec0
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 1 deletions

View File

@ -1227,7 +1227,12 @@ EOT
$targetVersion = '^' . $package->getVersion(); $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) private function getRepositorySet(Composer $composer)