Skip to content

Commit 2c37a2a

Browse files
committed
Fix XDebug flag bitwise logic
1 parent 64b60a0 commit 2c37a2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Driver/Xdebug.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ public function start(bool $determineUnusedAndDead = true): void
5454
}
5555

5656
if ($this->determineBranchCoverage) {
57-
$flag |= XDEBUG_CC_BRANCH_CHECK;
57+
$flag = XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE | XDEBUG_CC_BRANCH_CHECK;
5858
}
59+
5960
\xdebug_start_code_coverage($flag);
6061
}
6162

0 commit comments

Comments
 (0)