$this of type Nimo\Traits\MiddlewareTrait is incompatible with the type Interop\Http\Server\MiddlewareInterface expected by parameter $middleware of Nimo\MiddlewarePipe::append().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
28
->append(/** @scrutinizer ignore-type */ $this)
Loading history...
29
->append($middleware);
30
}
31
32
/**
33
* prepend $middleware before this one, return the new $middlewareStack
34
*
35
* @param $middleware
36
* @return MiddlewarePipe
37
*/
38
public function prepend(MiddlewareInterface $middleware): MiddlewarePipe
$this of type Nimo\Traits\MiddlewareTrait is incompatible with the type Interop\Http\Server\MiddlewareInterface expected by parameter $middleware of Nimo\MiddlewarePipe::prepend().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
43
->prepend(/** @scrutinizer ignore-type */ $this)
Loading history...
44
->prepend($middleware);
45
}
46
47
public function when(RequestPredictionInterface $requestPrediction): MiddlewareInterface
48
{
49
return new PredictionWrapperMiddleware($this, $requestPrediction);
$this of type Nimo\Traits\MiddlewareTrait is incompatible with the type Interop\Http\Server\MiddlewareInterface expected by parameter $innerMiddleware of Nimo\Middlewares\Predict...ddleware::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
49
return new PredictionWrapperMiddleware(/** @scrutinizer ignore-type */ $this, $requestPrediction);
Loading history...
50
}
51
52
public function catch (callable $catcher, string $catchClass = \Throwable::class): MiddlewareInterface