The expression return new Nip\Http\Exce...)->render($request, $e) returns the type Symfony\Component\HttpFoundation\JsonResponse which is incompatible with the documented return type Nip\Http\Response\Respon...ssage\ResponseInterface.
It seems like getContainer() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
36
return (new Handler($this->/** @scrutinizer ignore-call */ getContainer()))->render($request, $e);
Loading history...
37
}
38
39
/**
40
* @param Exception $e
41
* @param Request|ServerRequestInterface $request
42
* @return Response
43
*/
44
protected function handleException($request, Exception $e)