From c65687604ee71277f1881c6b83ac0a58e94e35de Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 27 Oct 2022 16:51:10 +0200 Subject: [PATCH] Fix react promise usage for forward compatibility --- 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 f7e1b9f9d..0fcd462a1 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -267,7 +267,7 @@ class InstallationManager // avoid calling cleanup if the download was not even initialized for a package // as without installation source configured nothing will work if (!$package->getInstallationSource()) { - return \React\Promise\resolve(); + return \React\Promise\resolve(null); } return $installer->cleanup($opType, $package, $initialPackage);