Skip to content

Commit 24b506b

Browse files
committed
Properly handle prefix = null
1 parent 9b456c5 commit 24b506b

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
@@ -125,7 +125,7 @@ private static function registerAncestorNamespaces(Dom\XPath $xp, Dom\Node $node
125125
$uri = (string) $attr->nodeValue;
126126

127127
if (
128-
$prefix === '' || $prefix === 'xmlns' || $uri === '' || isset($prefixToUri[$prefix])
128+
$prefix === '' || $prefix === null || $prefix === 'xmlns' || $uri === '' || isset($prefixToUri[$prefix])
129129
) {
130130
continue;
131131
}

0 commit comments

Comments
 (0)