Merge branch 'reader-array-formula-bugfix'

This commit is contained in:
MarkBaker 2021-02-14 17:10:01 +01:00
commit e29600116e
1 changed files with 4 additions and 0 deletions

View File

@ -721,6 +721,10 @@ class Xlsx extends BaseReader
} else {
// 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]);
}
}
break;