follow up of #6110

This commit is contained in:
ShockedPlot7560 2023-10-27 22:14:21 +02:00
parent 823d4ead6a
commit 243a3035ba
No known key found for this signature in database
GPG Key ID: D7539B420F1FA86E

View File

@ -79,7 +79,7 @@ final class AsyncEventDelegate{
$priorities = EventPriority::ALL;
$testResolve = function () use (&$testResolve, &$priorities, $globalResolver){
if(count($priorities) === 0){
$globalResolver->resolve(""); // TODO: see #6110
$globalResolver->resolve(null);
}else{
$this->callPriority(array_shift($priorities))->onCompletion(function() use ($testResolve) : void{
$testResolve();
@ -119,7 +119,7 @@ final class AsyncEventDelegate{
$testResolve = function() use (&$nonConcurrentHandlers, &$testResolve, $resolver){
if(count($nonConcurrentHandlers) === 0){
$this->waitForPromises()->onCompletion(function() use ($resolver){
$resolver->resolve(""); // TODO: see #6110
$resolver->resolve(null);
}, function() use ($resolver){
$resolver->reject();
});