From 1bcecf3dfcf051de607b1060eea94a4c9f0fc36d Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Mon, 14 Feb 2022 21:05:14 -0600 Subject: [PATCH] Oops --- lib/XPathResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/XPathResult.php b/lib/XPathResult.php index a0c69f6..5af9711 100644 --- a/lib/XPathResult.php +++ b/lib/XPathResult.php @@ -60,7 +60,7 @@ class XPathResult implements \ArrayAccess, \Countable, \Iterator { } $node = $this->storage[0]; - return ($node !== null) ? $node->ownerDocument->getWrapperNode($node) : node; + return ($node !== null) ? $node->ownerDocument->getWrapperNode($node) : null; } protected function __get_snapshotLength(): int {