File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727use Illuminate \Auth \Access \AuthorizationException ;
2828use Illuminate \Auth \AuthenticationException ;
2929use Negotiation \Negotiator ;
30+ use Illuminate \Http \Request ;
3031use Symfony \Component \HttpFoundation \Exception \RequestExceptionInterface ;
32+ use Symfony \Component \HttpFoundation \Response ;
3133use Symfony \Component \HttpKernel \Exception \HttpExceptionInterface as SymfonyHttpExceptionInterface ;
3234use Symfony \Component \Serializer \Normalizer \AbstractObjectNormalizer ;
3335
@@ -56,14 +58,14 @@ public function __construct(
5658 $ this ->negotiator = $ negotiator ;
5759 }
5860
59- public function shouldRender ($ request , \Throwable $ throwable )
61+ public function shouldRender (Request $ request , \Throwable $ throwable ): bool
6062 {
6163 $ apiOperation = $ this ->initializeOperation ($ request );
6264
6365 return null !== $ apiOperation ;
6466 }
6567
66- public function render ($ request , \Throwable $ exception )
68+ public function render (Request $ request , \Throwable $ exception ): ? Response
6769 {
6870 $ apiOperation = $ this ->initializeOperation ($ request );
6971
You can’t perform that action at this time.
0 commit comments