1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Improve docblocks on fixed/locked/fixedLocked packages in request

Also fixes two small code review issues
This commit is contained in:
Nils Adermann 2020-10-14 11:42:16 +02:00
parent fdde9e5933
commit 8a2bae82ab
3 changed files with 17 additions and 6 deletions

View file

@ -189,7 +189,7 @@ abstract class Rule
}));
if (count($packagesNonAlias) === 1) {
$package = $packagesNonAlias[0];
if (!($package instanceof AliasPackage) && $request->isLockedPackage($package)) {
if ($request->isLockedPackage($package)) {
return $package->getPrettyName().' is locked to version '.$package->getPrettyVersion()." and an update of this package was not requested.";
}
}