worksheet: fix if cellValue does not exist (#1727)
The condition is FALSE if the cell does not exist in the flipped table, but anyway, it is sent in to a method requiring 'string' type, causing it to fail.
This commit is contained in:
parent
1de03c2578
commit
916b6888eb
|
@ -1079,7 +1079,7 @@ class Worksheet extends WriterPart
|
|||
{
|
||||
$objWriter->writeAttribute('t', $mappedType);
|
||||
if (!$cellValue instanceof RichText) {
|
||||
self::writeElementIf($objWriter, isset($pFlippedStringTable[$cellValue]), 'v', $pFlippedStringTable[$cellValue]);
|
||||
self::writeElementIf($objWriter, isset($pFlippedStringTable[$cellValue]), 'v', $pFlippedStringTable[$cellValue] ?? '');
|
||||
} else {
|
||||
$objWriter->writeElement('v', $pFlippedStringTable[$cellValue->getHashCode()]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue