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.
Undefined array key "x"
1 parent 4fc82f4 commit 4857276Copy full SHA for 4857276
src/PhpSpreadsheet/Reader/Xml/Style.php
@@ -76,7 +76,7 @@ public function parseStyles(SimpleXMLElement $xml, array $namespaces): array
76
break;
77
case 'Protection':
78
$locked = $hidden = null;
79
- $styleAttributesP = $styleData->attributes($namespaces['x']);
+ $styleAttributesP = array_key_exists('x',$namespaces) ? $styleData->attributes($namespaces['x']) : [];
80
if (isset($styleAttributes['Protected'])) {
81
$locked = ((bool) (string) $styleAttributes['Protected']) ? Protection::PROTECTION_PROTECTED : Protection::PROTECTION_UNPROTECTED;
82
}
0 commit comments