Skip to content

Commit

Permalink
Do not clone cached getReport() result (to be consistent with the mai…
Browse files Browse the repository at this point in the history
…n branch where we do not clone because cloning results in test failures)
  • Loading branch information
sebastianbergmann committed Jul 15, 2023
1 parent 1e4c868 commit a94bcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeCoverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function getReport(): Directory
$this->cachedReport = (new Builder($this->analyser()))->build($this);
}

return clone $this->cachedReport;
return $this->cachedReport;
}

/**
Expand Down

0 comments on commit a94bcd0

Please sign in to comment.