1 | <?php |
||
13 | class WhoopsPrettyErrorReporter implements ErrorReporter |
||
14 | { |
||
15 | /** |
||
16 | * @var \Whoops\Handler\PrettyPageHandler |
||
17 | */ |
||
18 | protected $prettyHandler; |
||
19 | |||
20 | /** |
||
21 | * @var \Camspiers\LoggerBridge\EnvReporter\EnvReporter |
||
22 | */ |
||
23 | protected $envReporter; |
||
24 | |||
25 | /** |
||
26 | * @param \Whoops\Handler\PrettyPageHandler $prettyHandler |
||
27 | * @param \Camspiers\LoggerBridge\EnvReporter\EnvReporter $envReporter |
||
28 | */ |
||
29 | public function __construct(PrettyPageHandler $prettyHandler, EnvReporter $envReporter) |
||
34 | |||
35 | /** |
||
36 | * @param \Exception $exception |
||
37 | * @param \SS_HTTPRequest $request |
||
38 | */ |
||
39 | public function reportError(\Exception $exception, \SS_HTTPRequest $request = null) |
||
48 | } |
||
49 |
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: