| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function _displayError($error, $debug) |
||
| 44 | { |
||
| 45 | if ($debug) { |
||
| 46 | $whoops = $this->getWhoopsInstance(); |
||
| 47 | $whoops->pushHandler(new PrettyPageHandler()); |
||
|
|
|||
| 48 | $whoops->handleError($error['level'], $error['description'], $error['file'], $error['line']); |
||
| 49 | } else { |
||
| 50 | parent::_displayError($error, $debug); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 72 |
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: