diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index bca65021b..9bbd6fee9 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -670,7 +670,12 @@ class Installer foreach ($this->updateWhitelist as $packageName => $void) { $packageQueue = new \SplQueue; - foreach ($pool->whatProvides($packageName) as $depPackage) { + $depPackages = $pool->whatProvides($packageName); + if (count($depPackages) == 0) { + $this->io->write('Package "' . $packageName . '" listed for update is not installed. Ignoring.'); + } + + foreach ($depPackages as $depPackage) { $packageQueue->enqueue($depPackage); }