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
37
return (new Handler($this->/** @scrutinizer ignore-call */ getContainer()))->render($request, $e);
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.
Loading history...
38
}
39
40
/**
41
* @param Exception $e
42
* @param Request|ServerRequestInterface $request
43
* @return Response
44
*/
45
protected function handleException($request, Throwable $e)