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();