From ba8ede1a29bc355df96c900e177e33e494b2f858 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Wed, 17 Jul 2019 15:21:17 +0200 Subject: [PATCH] Specify that DOMNodeList::item() indexes are 0-based --- dom/dom_c.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/dom_c.php b/dom/dom_c.php index 3b40a707..a387ca56 100644 --- a/dom/dom_c.php +++ b/dom/dom_c.php @@ -1146,6 +1146,7 @@ class DOMNodeList implements Traversable, Countable { * @link https://php.net/manual/en/domnodelist.item.php * @param int $index

* Index of the node into the collection. + * The range of valid child node indices is 0 to length - 1 inclusive. *

* @return DOMNode|null The node at the indexth position in the * DOMNodeList, or &null; if that is not a valid