Skip to content

Commit

Permalink
Writer: Xlsx: Worksheet: handle PHP 7.4 deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner authored and PowerKiKi committed Sep 20, 2019
1 parent f7d2eba commit 9d6736d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ private function writeCell(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet
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);
Expand Down

0 comments on commit 9d6736d

Please sign in to comment.