1
0
Fork 0

Merge pull request #9336 from helhum/fix-require-with-no-lock

Correctly avoid partial updates in require commands
pull/9341/head
Nils Adermann 2020-10-25 10:31:41 +01:00 committed by GitHub
commit e090274db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ EOT
// if no lock is present, or the file is brand new, we do not do a // if no lock is present, or the file is brand new, we do not do a
// partial update as this is not supported by the Installer // partial update as this is not supported by the Installer
if (!$this->firstRequire && $composer->getConfig()->get('lock')) { if (!$this->firstRequire && $composer->getLocker()->isLocked()) {
$install->setUpdateAllowList(array_keys($requirements)); $install->setUpdateAllowList(array_keys($requirements));
} }