From 4e1f89d04c562c28786816f0e6d87d8507ec5733 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 14 Feb 2021 17:12:01 +0100 Subject: [PATCH] Fix coding standards issue --- src/PhpSpreadsheet/Reader/Xlsx.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpSpreadsheet/Reader/Xlsx.php b/src/PhpSpreadsheet/Reader/Xlsx.php index 1eab5ef3..2b37896d 100644 --- a/src/PhpSpreadsheet/Reader/Xlsx.php +++ b/src/PhpSpreadsheet/Reader/Xlsx.php @@ -722,8 +722,8 @@ class Xlsx extends BaseReader // Formula $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToString'); if (isset($c->f['t'])) { - $att = $c->f['t']; - $docSheet->getCell($r)->setFormulaAttributes(['t' => (string) $att]); + $attributes = $c->f['t']; + $docSheet->getCell($r)->setFormulaAttributes(['t' => (string) $attributes]); } }