From 0bed60e631ad2f61f004778956cc81f4d371c700 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 25 Aug 2021 22:35:34 +0200 Subject: [PATCH] Correctly resolve promises when package type changes --- src/Composer/Installer/InstallationManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/InstallationManager.php b/src/Composer/Installer/InstallationManager.php index c7f43a5bfa2b..5b254384e688 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -511,7 +511,7 @@ public function update(InstalledRepositoryInterface $repo, UpdateOperation $oper } $installer = $this->getInstaller($targetType); - $promise->then(function () use ($installer, $repo, $target) { + $promise = $promise->then(function () use ($installer, $repo, $target) { return $installer->install($repo, $target); }); }