Writer: Xlsx: Worksheet: handle PHP 7.4 deprecation notice
This commit is contained in:
parent
f7d2ebac40
commit
9d6736d303
|
@ -1105,7 +1105,7 @@ class Worksheet extends WriterPart
|
||||||
break;
|
break;
|
||||||
case 'f': // Formula
|
case 'f': // Formula
|
||||||
$attributes = $pCell->getFormulaAttributes();
|
$attributes = $pCell->getFormulaAttributes();
|
||||||
if ($attributes['t'] === 'array') {
|
if (($attributes['t'] ?? null) === 'array') {
|
||||||
$objWriter->startElement('f');
|
$objWriter->startElement('f');
|
||||||
$objWriter->writeAttribute('t', 'array');
|
$objWriter->writeAttribute('t', 'array');
|
||||||
$objWriter->writeAttribute('ref', $pCellAddress);
|
$objWriter->writeAttribute('ref', $pCellAddress);
|
||||||
|
|
Loading…
Reference in New Issue