Skip to content

Commit

Permalink
Schedule: Fix return type mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 6, 2023
1 parent 2d40a3b commit 8414564
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Reporting/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public function run(): ExtendedPromiseInterface
$deferred->resolve();
});

return $deferred->promise();
/** @var ExtendedPromiseInterface $promise */
$promise = $deferred->promise();

return $promise;
}
}

0 comments on commit 8414564

Please sign in to comment.