| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | 3 | private function merge(AbstractParaunitProcess $process) |
|
| 54 | { |
||
| 55 | 3 | $newCoverageData = $this->coverageFetcher->fetch($process); |
|
| 56 | |||
| 57 | 3 | if ($this->coverageData instanceof CodeCoverage) { |
|
| 58 | 1 | $this->coverageData->merge($newCoverageData); |
|
|
|
|||
| 59 | } else { |
||
| 60 | 3 | $this->coverageData = $newCoverageData; |
|
| 61 | } |
||
| 62 | } |
||
| 63 | |||
| 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: