Skip to content

Commit e643be0

Browse files
Merge branch 'master' into report-refactoring
2 parents 37b538f + 0eb75c4 commit e643be0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

PHP/CodeCoverage.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,13 @@ public function merge(PHP_CodeCoverage $that)
361361

362362
foreach ($lines as $line => $data) {
363363
if ($data !== NULL) {
364-
$this->data[$file][$line] = array_unique(
365-
array_merge($this->data[$file][$line], $data)
366-
);
364+
if (!isset($this->data[$file][$line])) {
365+
$this->data[$file][$line] = $data;
366+
} else {
367+
$this->data[$file][$line] = array_unique(
368+
array_merge($this->data[$file][$line], $data)
369+
);
370+
}
367371
}
368372
}
369373
}

0 commit comments

Comments
 (0)