Skip to content

Commit 5ebf085

Browse files
committed
Possible fix for "Fatal error: XDEBUG_CC_UNUSED and XDEBUG_CC_DEAD_CODE constants are not currently supported."
1 parent d12d000 commit 5ebf085

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CodeCoverage/Driver/Xdebug.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ public function __construct()
3838
*/
3939
public function start()
4040
{
41-
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
41+
if (defined('HHVM_VERSION')) {
42+
xdebug_start_code_coverage();
43+
} else {
44+
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
45+
}
4246
}
4347

4448
/**

0 commit comments

Comments
 (0)