diff --git a/src/Composer/Installer/InstallationManager.php b/src/Composer/Installer/InstallationManager.php index cc217a41f..d7708c2a7 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -100,13 +100,7 @@ class InstallationManager */ public function isPackageInstalled(PackageInterface $package) { - foreach ($this->installers as $installer) { - if ($installer->isInstalled($package)) { - return true; - } - } - - return false; + return $this->getInstaller($package->getType())->isInstalled($package); } /**