Skip to content

Commit

Permalink
For loop bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
DWinter committed Sep 17, 2024
1 parent f770095 commit 80e7317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExcelGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function applyColumnHeaders(): ExcelGenerator
$sheet = $this->worksheetType->getWorksheet();
$headerCount = count($columns);
$columnLetters = [];
for ($index = 1; $index < $headerCount; $index++) {
for ($index = 1; $index <= $headerCount; $index++) {
$columnLetters[] = Coordinate::stringFromColumnIndex($index);
}

Expand Down

0 comments on commit 80e7317

Please sign in to comment.