| 1 | <?php |
||
| 16 | class CoverageMerger implements EventSubscriberInterface |
||
| 17 | { |
||
| 18 | /** @var CoverageFetcher */ |
||
| 19 | private $coverageFetcher; |
||
| 20 | |||
| 21 | /** @var CodeCoverage */ |
||
| 22 | private $coverageData; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * CoverageMerger constructor. |
||
| 26 | * @param CoverageFetcher $coverageFetcher |
||
| 27 | */ |
||
| 28 | 12 | public function __construct(CoverageFetcher $coverageFetcher) |
|
| 32 | |||
| 33 | 11 | public static function getSubscribedEvents(): array |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param ProcessEvent $processEvent |
||
| 42 | */ |
||
| 43 | 3 | public function onProcessParsingCompleted(ProcessEvent $processEvent) |
|
| 52 | |||
| 53 | 3 | private function merge(AbstractParaunitProcess $process) |
|
| 63 | |||
| 64 | 3 | public function getCoverageData(): CodeCoverage |
|
| 68 | } |
||
| 69 |
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: