Skip to content

Commit 947caca

Browse files
committed
Fixed deprecation warnings about passing null as parameter
1 parent 01c7732 commit 947caca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPath/Extension/NodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function translateElement(Node\ElementNode $node): XPathExpr
157157
{
158158
$element = $node->getElement();
159159

160-
if ($this->hasFlag(self::ELEMENT_NAME_IN_LOWER_CASE)) {
160+
if ($element && $this->hasFlag(self::ELEMENT_NAME_IN_LOWER_CASE)) {
161161
$element = strtolower($element);
162162
}
163163

0 commit comments

Comments
 (0)