From deb3d57bc426030a31221bf00920871f0f933a3a Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Wed, 27 Oct 2021 19:17:04 +0100 Subject: [PATCH] Ingest coverage data only for the files in the filter that actually have some. Fixes #876 --- src/Driver/PcovDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Driver/PcovDriver.php b/src/Driver/PcovDriver.php index f4eca6031..70846ad26 100644 --- a/src/Driver/PcovDriver.php +++ b/src/Driver/PcovDriver.php @@ -47,7 +47,7 @@ public function stop(): RawCodeCoverageData $collect = \pcov\collect( \pcov\inclusive, - !$this->filter->isEmpty() ? $this->filter->files() : \pcov\waiting() + $this->filter->isEmpty() ? \pcov\waiting() : array_intersect(\pcov\waiting(), $this->filter->files()) ); \pcov\clear();