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.
1 parent 4bf0ac7 commit d6fccd1Copy full SHA for d6fccd1
src/XMLSchema/Type/QNameValue.php
@@ -176,7 +176,11 @@ public static function fromDocument(
176
}
177
178
// Will return the default namespace (if any) when prefix is NULL
179
- $namespaceURI = DOMDocumentFactory::lookupNamespaceUri($element, $namespacePrefix);
+ if ($namespacePrefix === null) {
180
+ $namespaceURI = $element->lookupNamespaceURI($namespacePrefix);
181
+ } else {
182
+ $namespaceURI = DOMDocumentFactory::lookupNamespaceUri($element, $namespacePrefix);
183
+ }
184
185
return new static('{' . $namespaceURI . '}' . ($namespacePrefix ? $namespacePrefix . ':' : '') . $localName);
186
0 commit comments