Set formula attribute in the Xlsx reader

This commit is contained in:
Gislain Harding 2020-09-07 10:10:13 +02:00
parent 9683e5be18
commit 8d89554d84
1 changed files with 4 additions and 0 deletions

View File

@ -717,6 +717,10 @@ class Xlsx extends BaseReader
} else { } else {
// Formula // Formula
$this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToString'); $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]);
}
} }
break; break;