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:
parent
adc0bbeeb9
commit
4b269f4ded
3 changed files with 39 additions and 4 deletions
|
@ -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."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue