1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Fix usage

This commit is contained in:
Jordi Boggiano 2020-05-04 22:04:57 +02:00 committed by GitHub
parent 8a2dd1baef
commit 1d68e85433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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