| 1 | <?php |
||
| 11 | class WhoopsExceptionHandler extends Handler |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get the Whoops Handler instance to use |
||
| 15 | * |
||
| 16 | * @return \Whoops\Handler\Handler |
||
| 17 | */ |
||
| 18 | protected function getWhoopsHandler() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a Whoops response for the given exception |
||
| 27 | * |
||
| 28 | * @param Exception $e |
||
| 29 | * @return \Illuminate\Http\Response |
||
| 30 | */ |
||
| 31 | protected function convertExceptionToWhoops(Exception $e) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Create the default or a Whoops response for the given exception |
||
| 44 | * |
||
| 45 | * @param Exception $e |
||
| 46 | * @return \Illuminate\Http\Response|\Symfony\Component\HttpFoundation\Response |
||
| 47 | */ |
||
| 48 | protected function convertExceptionToResponse(Exception $e) |
||
| 54 | } |
||
| 55 |
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: