From c4f83402ad96811f7e484dbb650ebe183e5809ea Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Mon, 24 Feb 2020 11:59:07 +0000 Subject: [PATCH] Badly named variable mean things were just not working. Gah. --- src/Service/FileWriter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Service/FileWriter.php b/src/Service/FileWriter.php index 0bfb647..39889f2 100644 --- a/src/Service/FileWriter.php +++ b/src/Service/FileWriter.php @@ -55,13 +55,13 @@ public function getFiles(): array */ public function merge(string $path): FileWriter { - $coverage = new CodeCoverage(); + $combinedCoverage = new CodeCoverage(); foreach ($this->files as $file => $coverage) { - $coverage->merge($coverage); + $combinedCoverage->merge($coverage); } - $this->files = [$path => $coverage]; + $this->files = [$path => $combinedCoverage]; return $this; }