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 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); }); }