Skip to content

Commit

Permalink
Very Minor Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed Dec 5, 2023
1 parent 37e07cf commit bfb7e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Xlsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
$cAttrS = isset($styles[$cAttrS]) ? $cAttrS : 0;
$cell->setXfIndex($cAttrS);
// issue 3495
if ($cell->getDataType() === DataType::TYPE_FORMULA && $styles[$cAttrS]->quotePrefix === true) {
if ($cellDataType === DataType::TYPE_FORMULA && $styles[$cAttrS]->quotePrefix === true) {
$cell->getStyle()->setQuotePrefix(false);
}
$docSheet->setSelectedCells($holdSelected);
Expand Down

0 comments on commit bfb7e70

Please sign in to comment.