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 7a58d4f commit 58834daCopy full SHA for 58834da
src/CodeCoverage.php
@@ -403,7 +403,7 @@ function ($value, $key) use ($lines) {
403
}
404
405
foreach ($lines as $line => $data) {
406
- if ($data === null || $this->data[$file][$line] === null) {
+ if ($data === null || (array_key_exists($line, $this->data[$file]) && $this->data[$file][$line] === null)) {
407
// if the line is marked as "dead code" in either, mark it as dead code in the merged result
408
$this->data[$file][$line] = null;
409
} else if (!isset($this->data[$file][$line])) {
0 commit comments