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:
parent
fdde9e5933
commit
8a2bae82ab
3 changed files with 17 additions and 6 deletions
|
@ -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.";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue