From a94bcd0ce5260d6229fd36d3f168ccb5dfff8253 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 15 Jul 2023 07:42:54 +0200 Subject: [PATCH] Do not clone cached getReport() result (to be consistent with the main branch where we do not clone because cloning results in test failures) --- src/CodeCoverage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CodeCoverage.php b/src/CodeCoverage.php index 31486ccf..bdf9c64c 100644 --- a/src/CodeCoverage.php +++ b/src/CodeCoverage.php @@ -136,7 +136,7 @@ public function getReport(): Directory $this->cachedReport = (new Builder($this->analyser()))->build($this); } - return clone $this->cachedReport; + return $this->cachedReport; } /**