1
0
Fork 0

Fix the promise resolution for the cleanup logic (#11620)

pull/11634/head
Christophe Coevoet 2023-09-11 17:40:43 +02:00 committed by GitHub
parent 370b394714
commit 087b21d687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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