diff --git a/src/PhpSpreadsheet/Reader/Ods/Properties.php b/src/PhpSpreadsheet/Reader/Ods/Properties.php index 85596b32..8b6122c5 100644 --- a/src/PhpSpreadsheet/Reader/Ods/Properties.php +++ b/src/PhpSpreadsheet/Reader/Ods/Properties.php @@ -20,13 +20,13 @@ class Properties $officeProperty = $xml->children($namespacesMeta['office']); foreach ($officeProperty as $officePropertyData) { /** @var \SimpleXMLElement $officePropertyData */ - $officePropertiesDC = []; + $officePropertiesDC = (object) []; if (isset($namespacesMeta['dc'])) { $officePropertiesDC = $officePropertyData->children($namespacesMeta['dc']); } $this->setCoreProperties($docProps, $officePropertiesDC); - $officePropertyMeta = []; + $officePropertyMeta = (object) []; if (isset($namespacesMeta['dc'])) { $officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']); }