Skip to content

Commit d397b97

Browse files
authored
bite me
1 parent 55b1037 commit d397b97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XML/ds/XPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function fromXML(DOMElement $xml): object
109109
$namespaces = [];
110110
$xpath = XPathUtils::getXPath($xml->ownerDocument);
111111
/** @var \DOMNode $ns */
112-
foreach (XPathUtils::xpQuery('./namespace::*', $xml, $xpath) as $ns) {
112+
foreach (XPathUtils::xpQuery($xml, './namespace::*', $xpath) as $ns) {
113113
if ($xml->getAttributeNode($ns->nodeName)) {
114114
// only add namespaces when they are defined explicitly in an attribute
115115
$namespaces[$ns->localName] = $xml->getAttribute($ns->nodeName);

0 commit comments

Comments
 (0)