Skip to content

Commit 2c5f242

Browse files
authored
Fix use of incorrect property
1 parent 509ec04 commit 2c5f242

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XPath/XPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private static function registerAncestorNamespaces(DOMXPath $xp, DOMNode $node):
124124
if ($attr->namespaceURI !== C_XML::NS_XMLNS) {
125125
continue;
126126
}
127-
$prefix = $attr->localName;
127+
$prefix = $attr->prefix;
128128
$uri = (string) $attr->nodeValue;
129129

130130
if (

0 commit comments

Comments
 (0)