1
0
Fork 0

Fix react promise usage for forward compatibility

pull/11158/head
Jordi Boggiano 2022-10-27 16:51:10 +02:00
parent a63ce7cf96
commit c65687604e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

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