| 1 | <?php |
||
| 11 | class DebugErrorReporter implements ErrorReporter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \Camspiers\LoggerBridge\EnvReporter\EnvReporter |
||
| 15 | */ |
||
| 16 | protected $envReporter; |
||
| 17 | /** |
||
| 18 | * @param \Camspiers\LoggerBridge\EnvReporter\EnvReporter $envReporter |
||
| 19 | */ |
||
| 20 | 3 | public function __construct(EnvReporter $envReporter) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param \Exception $exception |
||
| 27 | * @param \SS_HTTPRequest $request |
||
| 28 | */ |
||
| 29 | 2 | public function reportError(\Exception $exception, \SS_HTTPRequest $request = null) |
|
| 44 | } |
||
| 45 |
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: