diff --git a/src/Composer/Installer/InstallationManager.php b/src/Composer/Installer/InstallationManager.php index c7f43a5bf..5b254384e 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -511,7 +511,7 @@ class InstallationManager } $installer = $this->getInstaller($targetType); - $promise->then(function () use ($installer, $repo, $target) { + $promise = $promise->then(function () use ($installer, $repo, $target) { return $installer->install($repo, $target); }); }