Skip to content

Commit 9d6736d

Browse files
kornrunnerPowerKiKi
authored andcommitted
Writer: Xlsx: Worksheet: handle PHP 7.4 deprecation notice
1 parent f7d2eba commit 9d6736d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ private function writeCell(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet
11051105
break;
11061106
case 'f': // Formula
11071107
$attributes = $pCell->getFormulaAttributes();
1108-
if ($attributes['t'] === 'array') {
1108+
if (($attributes['t'] ?? null) === 'array') {
11091109
$objWriter->startElement('f');
11101110
$objWriter->writeAttribute('t', 'array');
11111111
$objWriter->writeAttribute('ref', $pCellAddress);

0 commit comments

Comments
 (0)