diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index a3481a45b..1c8d7bb41 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -1175,10 +1175,15 @@ class Installer $requirePackages = $pool->whatProvides($require->getTarget()); foreach ($requirePackages as $requirePackage) { + if (isset($this->updateWhitelist[$requirePackage->getName()])) { + continue; + } + if (isset($skipPackages[$requirePackage->getName()])) { $this->io->writeError('Dependency "' . $requirePackage->getName() . '" is also a root requirement, but is not explicitly whitelisted. Ignoring.'); continue; } + $packageQueue->enqueue($requirePackage); } }