It seems like $this of type this<Sirius\Middleware\FrameRunner> is incompatible with the declared type object<Sirius\Middleware\Runner> of property $next.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
49
50
3
return $runner;
51
}
52
53
/**
54
* @param ServerRequestInterface $request
55
* @return ResponseInterface
56
* @throws \Exception
57
*/
58
public function __invoke(ServerRequestInterface $request)
59
{
60
61
5
$next = $this->next ?: function (ServerRequestInterface $request) {
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..