Specify that DOMNodeList::item() indexes are 0-based
This commit is contained in:
parent
49570ff93f
commit
ba8ede1a29
|
@ -1146,6 +1146,7 @@ class DOMNodeList implements Traversable, Countable {
|
||||||
* @link https://php.net/manual/en/domnodelist.item.php
|
* @link https://php.net/manual/en/domnodelist.item.php
|
||||||
* @param int $index <p>
|
* @param int $index <p>
|
||||||
* Index of the node into the collection.
|
* Index of the node into the collection.
|
||||||
|
* The range of valid child node indices is 0 to length - 1 inclusive.
|
||||||
* </p>
|
* </p>
|
||||||
* @return DOMNode|null The node at the indexth position in the
|
* @return DOMNode|null The node at the indexth position in the
|
||||||
* DOMNodeList, or &null; if that is not a valid
|
* DOMNodeList, or &null; if that is not a valid
|
||||||
|
|
Loading…
Reference in New Issue