Skip to content

Commit

Permalink
Merge branch '9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 18, 2022
2 parents a800be1 + 2211339 commit d2d0c8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CodeCoverage.php
Expand Up @@ -397,6 +397,10 @@ private function applyFilter(RawCodeCoverageData $data): void
private function applyExecutableLinesFilter(RawCodeCoverageData $data): void
{
foreach (array_keys($data->lineCoverage()) as $filename) {
if (!$this->filter->isFile($filename)) {
continue;
}

$data->keepLineCoverageDataOnlyForLines(
$filename,
$this->analyser()->executableLinesIn($filename)
Expand Down

0 comments on commit d2d0c8c

Please sign in to comment.