From 5d0ceb1a5df4b6f6ba835cdbaf4c20b17a4952c4 Mon Sep 17 00:00:00 2001 From: ohnotnow Date: Wed, 29 Jul 2026 19:28:38 +0100 Subject: [PATCH] Check for pcov being enabled for tia (#1779) * Check for pcov being enabled for tia * Delete tests/Features/TiaDriverGate.php Signed-off-by: nuno maduro --------- Signed-off-by: nuno maduro Co-authored-by: Ohffs Co-authored-by: nuno maduro --- src/Plugins/Tia/Recorder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugins/Tia/Recorder.php b/src/Plugins/Tia/Recorder.php index 56b91690..c9e71870 100644 --- a/src/Plugins/Tia/Recorder.php +++ b/src/Plugins/Tia/Recorder.php @@ -68,7 +68,7 @@ final class Recorder public function driverAvailable(): bool { if (! $this->driverChecked) { - if (function_exists('pcov\\start')) { + if (function_exists('pcov\\start') && filter_var((string) ini_get('pcov.enabled'), FILTER_VALIDATE_BOOL)) { $this->driver = 'pcov'; $this->driverAvailable = true; } elseif (function_exists('xdebug_start_code_coverage') && function_exists('xdebug_info')) {