We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dffb3ca commit 0eb75c4Copy full SHA for 0eb75c4
PHP/CodeCoverage.php
@@ -349,9 +349,13 @@ public function merge(PHP_CodeCoverage $that)
349
350
foreach ($lines as $line => $data) {
351
if ($data !== NULL) {
352
- $this->data[$file][$line] = array_unique(
353
- array_merge($this->data[$file][$line], $data)
354
- );
+ if (!isset($this->data[$file][$line])) {
+ $this->data[$file][$line] = $data;
+ } else {
355
+ $this->data[$file][$line] = array_unique(
356
+ array_merge($this->data[$file][$line], $data)
357
+ );
358
+ }
359
}
360
361
0 commit comments