Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
61 | protected function _displayException($exception) |
||
62 | { |
||
63 | if (Configure::read('debug')) { |
||
64 | $whoops = $this->getWhoopsInstance(); |
||
65 | $whoops->pushHandler(new PrettyPageHandler()); |
||
66 | $whoops->handleException($exception); |
||
67 | } else { |
||
68 | parent::_displayException($exception); |
||
69 | } |
||
70 | } |
||
71 | } |
||
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: