diff --git a/src/Callback/Arguments.php b/src/Callback/Arguments.php index 9e69bc4..c559916 100644 --- a/src/Callback/Arguments.php +++ b/src/Callback/Arguments.php @@ -148,8 +148,16 @@ public function count(): int return \count($this->arguments); } + /** + * @param \DOMNode $node + * @return mixed + */ private function convertFromSchemaTypeToPhpType(\DOMNode $node) { + if ($node instanceof \DOMDocument) { + $node = $node->documentElement; + } + if ($node->namespaceURI === XmlSchema::URI) { return $this->dataTypeParser->parse($node); }