Skip to content

Commit

Permalink
fix generated xs schema types
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed May 10, 2019
1 parent 99da1fc commit c74889f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Callback/Arguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c74889f

Please sign in to comment.