Writer: Xlsx: Worksheet: handle PHP 7.4 deprecation notice

This commit is contained in:
Boris Momčilović 2019-08-06 23:44:17 +02:00 committed by Adrien Crivelli
parent f7d2ebac40
commit 9d6736d303
1 changed files with 1 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ class Worksheet extends WriterPart
break;
case 'f': // Formula
$attributes = $pCell->getFormulaAttributes();
if ($attributes['t'] === 'array') {
if (($attributes['t'] ?? null) === 'array') {
$objWriter->startElement('f');
$objWriter->writeAttribute('t', 'array');
$objWriter->writeAttribute('ref', $pCellAddress);