Make sure we compare packages to their latest without aliases, fixes #9357
parent
86072a705b
commit
90a6aa7ec0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue