1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Follow stability option in create-project to select the best possible version, refs #4563

This commit is contained in:
Jordi Boggiano 2015-11-14 15:04:04 +00:00
parent adc0bbeeb9
commit 4b269f4ded
3 changed files with 39 additions and 4 deletions

View file

@ -281,7 +281,7 @@ EOT
// find the latest version if there are multiple
$versionSelector = new VersionSelector($pool);
$package = $versionSelector->findBestCandidate($name, $packageVersion, $phpVersion);
$package = $versionSelector->findBestCandidate($name, $packageVersion, $phpVersion, $stability);
if (!$package) {
throw new \InvalidArgumentException("Could not find package $name" . ($packageVersion ? " with version $packageVersion." : " with stability $stability."));