We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 12 | class ExceptionHandler extends Handler |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * A list of the exception types that are not reported. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $dontReport = [ |
||
| 20 | // |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * A list of the inputs that are never flashed for validation exceptions. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $dontFlash = [ |
||
| 29 | 'password', |
||
| 30 | 'password_confirmation', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Report or log an exception. |
||
| 35 | * |
||
| 36 | * @param \Exception $exception |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | public function report(Exception $exception) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Render an exception into an HTTP response. |
||
| 46 | * |
||
| 47 | * @param \Illuminate\Http\Request $request |
||
| 48 | * @param \Exception $exception |
||
| 49 | * @return \Illuminate\Http\Response |
||
| 50 | */ |
||
| 51 | public function render($request, Exception $exception) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Convert a validation exception into a JSON response. |
||
| 81 | * |
||
| 82 | * @param \Illuminate\Http\Request $request |
||
| 83 | * @param \Illuminate\Validation\ValidationException $exception |
||
| 84 | * @return \Illuminate\Http\JsonResponse |
||
| 85 | */ |
||
| 86 | protected function invalidJson($request, ValidationException $exception) |
||
| 90 | |||
| 91 | /** |
||
| 92 | * Convert an authentication exception into an unauthenticated response. |
||
| 93 | * |
||
| 94 | * @param \Illuminate\Http\Request $request |
||
| 95 | * @param \Illuminate\Auth\AuthenticationException $exception |
||
| 96 | * @return \Illuminate\Http\Response |
||
| 97 | */ |
||
| 98 | protected function unauthenticated($request, AuthenticationException $exception) |
||
| 108 | |||
| 109 | } |
||
| 110 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: