From 4520fe918a3e0aec51db31aa07572755ec641ee0 Mon Sep 17 00:00:00 2001 From: Maurizio Moreo Date: Fri, 7 Apr 2023 17:19:34 +0200 Subject: [PATCH] Add PCOV availability check --- src/Support/Coverage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Support/Coverage.php b/src/Support/Coverage.php index db69fcab..55e544b4 100644 --- a/src/Support/Coverage.php +++ b/src/Support/Coverage.php @@ -42,6 +42,10 @@ final class Coverage return false; } + if ($runtime->hasPCOV()) { + return true; + } + if (! $runtime->hasXdebug()) { return true; }