| 1 | <?php |
||
| 11 | class ExceptionHandler extends Handlers\ExceptionHandler |
||
| 12 | { |
||
| 13 | /** @var LoggerInterface */ |
||
| 14 | protected $logger; |
||
| 15 | |||
| 16 | /** @var ExceptionRenderer */ |
||
| 17 | protected $exceptionRenderer; |
||
| 18 | |||
| 19 | /** @var bool */ |
||
| 20 | protected $isCli = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 2 | public function getIsCli(): bool |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param bool $isCli |
||
| 36 | */ |
||
| 37 | 2 | public function setIsCli(bool $isCli) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Handles an exception |
||
| 44 | * |
||
| 45 | * @param Throwable $ex The exception to handle |
||
| 46 | */ |
||
| 47 | public function handle($ex) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Registers the handler with PHP |
||
| 54 | */ |
||
| 55 | 2 | public function register() |
|
| 67 | } |
||
| 68 |
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: