Skip to content

Commit f52d709

Browse files
authored
Update Spreadsheet.php
1 parent 8521820 commit f52d709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/Spreadsheet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ public function getSheetByName(string $worksheetName): ?Worksheet
663663
$worksheetCount = count($this->workSheetCollection);
664664
$trimWorksheetName = trim($worksheetName, "'");
665665

666-
for ($i = 0; $i < $wroksheetCount; ++$i) {
666+
for ($i = 0; $i < $worksheetCount; ++$i) {
667667
if (strcasecmp($this->workSheetCollection[$i]->getTitle(), $trimWorksheetName) === 0) {
668668
return $this->workSheetCollection[$i];
669669
}

0 commit comments

Comments
 (0)