From f497959b8ab8129909a6c1a2b64db9d306764873 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 13 Dec 2023 21:47:06 +0100 Subject: [PATCH] Fix return-type --- src/Utils/XPath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/XPath.php b/src/Utils/XPath.php index ac0f3ad..c7203db 100644 --- a/src/Utils/XPath.php +++ b/src/Utils/XPath.php @@ -49,7 +49,7 @@ public static function getXPath(DOMNode $node): DOMXPath * @param \DOMNode $node The XML node. * @param string $query The query. * @param \DOMXPath $xpCache The DOMXPath object - * @return \DOMNode[] Array with matching DOM nodes. + * @return array, \DOMNameSpaceNode|\DOMNode|null> Array with matching DOM nodes. */ public static function xpQuery(DOMNode $node, string $query, DOMXPath $xpCache): array {