return $map;
default:
throw new \
InvalidArgumentException(sprintf('Unknown tag "%s" used in file "%s". Expected "bool", "int", "float", "string", "list", or "map".',
$node->localName,
$path));
} } private function isElementValueNull(\DOMElement
$element): bool
{ $namespaceUri = 'http://www.w3.org/2001/XMLSchema-instance';
if (!
$element->
hasAttributeNS($namespaceUri, 'nil'
)) { return false;
} return 'true' ===
$element->
getAttributeNS($namespaceUri, 'nil'
) || '1' ===
$element->
getAttributeNS($namespaceUri, 'nil'
);
} /**
* Parses the deprecation elements.
*
* @throws \InvalidArgumentException When the XML is invalid
*/