From 087b21d68719cc1a39b80e2b4da2e6a1ff777431 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 11 Sep 2023 17:40:43 +0200 Subject: [PATCH] Fix the promise resolution for the cleanup logic (#11620) --- src/Composer/Installer/InstallationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installer/InstallationManager.php b/src/Composer/Installer/InstallationManager.php index f92a117ba..74f356826 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -654,10 +654,10 @@ class InstallationManager $promises[] = new \React\Promise\Promise(static function ($resolve) use ($cleanup): void { $promise = $cleanup(); if (!$promise instanceof PromiseInterface) { - $resolve(); + $resolve(null); } else { $promise->then(static function () use ($resolve): void { - $resolve(); + $resolve(null); }); } });