The expression return $callback could return the type callable which is incompatible with the type-hinted return Psr\Http\Message\Respons...romise\PromiseInterface. Consider adding an additional type-check to rule them out.
Loading history...
23
}
24
25
return new Promise(
26
static function (callable $resolve, callable $reject) use ($callback): void {