function Request::fixLockedPackage
Marks a locked package fixed. So it's treated irremovable like a platform package.
This is necessary for the composer install step which verifies the lock file integrity and should not allow removal of any packages. At the same time lock packages there cannot simply be marked fixed, as error reporting would then report them as platform packages, so this still marks them as locked packages at the same time.
File
-
vendor/
composer/ composer/ src/ Composer/ DependencyResolver/ Request.php, line 111
Class
- Request
- @author Nils Adermann <naderman@naderman.de>
Namespace
Composer\DependencyResolverCode
public function fixLockedPackage(BasePackage $package) : void {
$this->fixedPackages[spl_object_hash($package)] = $package;
$this->fixedLockedPackages[spl_object_hash($package)] = $package;
}