We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cf6ab commit 6537a29Copy full SHA for 6537a29
src/PhpSpreadsheet/Reader/Xlsx.php
@@ -898,8 +898,8 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
898
foreach ($item->attributes() ?? [] as $attr) {
899
$node->addAttribute($attr->getName(), $attr);
900
}
901
- $node->addAttribute('sqref', $item->children('xm', true)->sqref);
902
- $node->addChild('formula1', $item->formula1->children('xm', true)->f);
+ $node->addAttribute('sqref', $item->children('xm', true)->sqref ?? '');
+ $node->addChild('formula1', $item->formula1->children('xm', true)->f ?? '');
903
904
905
0 commit comments