Skip to content

Commit 77a064f

Browse files
committed
Minor tweak
1 parent eb91890 commit 77a064f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/ReferenceHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ public function updateNamedFormulae(Spreadsheet $spreadsheet, $oldName = '', $ne
877877
foreach ($spreadsheet->getWorksheetIterator() as $sheet) {
878878
foreach ($sheet->getCoordinates(false) as $coordinate) {
879879
$cell = $sheet->getCell($coordinate);
880-
if (($cell !== null) && ($cell->getDataType() === DataType::TYPE_FORMULA)) {
880+
if ($cell->getDataType() === DataType::TYPE_FORMULA) {
881881
$formula = $cell->getValue();
882882
if (strpos($formula, $oldName) !== false) {
883883
$formula = str_replace("'" . $oldName . "'!", "'" . $newName . "'!", $formula);

0 commit comments

Comments
 (0)