1 | <?php |
||
15 | class Handler extends ExceptionHandler |
||
16 | { |
||
17 | /** |
||
18 | * A list of the exception types that should not be reported. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $dontReport = [ |
||
23 | AuthorizationException::class, |
||
24 | HttpException::class, |
||
25 | ModelNotFoundException::class, |
||
26 | ValidationException::class, |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * Render an exception into an HTTP response. |
||
31 | * |
||
32 | * @param \Illuminate\Http\Request $request |
||
33 | * @param \Exception $e |
||
34 | * |
||
35 | * @return \Symfony\Component\HttpFoundation\Response |
||
36 | */ |
||
37 | public function render($request, Exception $e) |
||
54 | |||
55 | /** |
||
56 | * Convert an authentication exception into an unauthenticated response. |
||
57 | * |
||
58 | * @param \Illuminate\Http\Request $request |
||
59 | * @param \Illuminate\Auth\AuthenticationException $exception |
||
60 | * @return \Illuminate\Http\Response |
||
61 | */ |
||
62 | protected function unauthenticated($request, AuthenticationException $exception) |
||
70 | } |
||
71 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: