File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ final class Xdebug implements Driver
2424 */
2525 private $ cacheNumLines = [];
2626
27+ /**
28+ * @var bool
29+ */
30+ private $ hasSupportForWhitelistFiltering = false ;
31+
2732 /**
2833 * @throws RuntimeException
2934 */
@@ -36,6 +41,8 @@ public function __construct()
3641 if (!\ini_get ('xdebug.coverage_enable ' )) {
3742 throw new RuntimeException ('xdebug.coverage_enable=On has to be set in php.ini ' );
3843 }
44+
45+ $ this ->hasSupportForWhitelistFiltering = function_exists ('xdebug_set_filter ' );
3946 }
4047
4148 /**
@@ -67,7 +74,7 @@ public function stop(): array
6774 */
6875 public function supportsWhitelistFiltering ()
6976 {
70- return false ;
77+ return $ this -> hasSupportForWhitelistFiltering ;
7178 }
7279
7380 /**
You can’t perform that action at this time.
0 commit comments