From f83c966984d7bf6c176fa00acabe7e73802ecd23 Mon Sep 17 00:00:00 2001 From: Marin Nikolli Date: Tue, 6 Feb 2024 10:55:27 +0100 Subject: [PATCH] fixes for the destructurings --- src/PhpSpreadsheet/Worksheet/Worksheet.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PhpSpreadsheet/Worksheet/Worksheet.php b/src/PhpSpreadsheet/Worksheet/Worksheet.php index 2b1d0a485b..34eed3a434 100644 --- a/src/PhpSpreadsheet/Worksheet/Worksheet.php +++ b/src/PhpSpreadsheet/Worksheet/Worksheet.php @@ -3630,8 +3630,7 @@ public function repeatSourceRange(string $sourceRange, int $repetitions = 2, int $sourceEndColumnIndex = $sourceEnd[0]; // Find the merged cells within the source range - $mergedCellRanges = []; - $mergedCellRanges[] = $this->getMergeCellsFromCollection($sourceStart, $sourceEnd); + $mergedCellRanges = $this->getMergeCellsFromCollection($sourceStart, $sourceEnd); // Copy the cells and merge them in the new locations $groupCount = 0;