Specify that DOMNodeList::item() indexes are 0-based

This commit is contained in:
Benjamin Morel 2019-07-17 15:21:17 +02:00 committed by GitHub
parent 49570ff93f
commit ba8ede1a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1146,6 +1146,7 @@ class DOMNodeList implements Traversable, Countable {
* @link https://php.net/manual/en/domnodelist.item.php
* @param int $index <p>
* Index of the node into the collection.
* The range of valid child node indices is 0 to length - 1 inclusive.
* </p>
* @return DOMNode|null The node at the indexth position in the
* DOMNodeList, or &null; if that is not a valid