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 62fb6f7 commit f72cfbcCopy full SHA for f72cfbc
src/Type/QNameValue.php
@@ -174,6 +174,6 @@ public static function fromDocument(
174
// Will return the default namespace (if any) when prefix is NULL
175
$namespaceURI = $element->lookupNamespaceUri($namespacePrefix);
176
177
- return new static('{' . $namespaceURI . '}' . $namespacePrefix . ':' . $localName);
+ return new static('{' . $namespaceURI . '}' . ($namespacePrefix ? $namespacePrefix . ':' : '') . $localName);
178
}
179
0 commit comments