Skip to content

Commit

Permalink
Merge pull request #639 from BenMorel/patch-5
Browse files Browse the repository at this point in the history
Specify that DOMNodeList::item() indexes are 0-based
  • Loading branch information
Leneshka-jb authored Jul 22, 2019
2 parents 9689d0c + ba8ede1 commit 8577cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dom/dom_c.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8577cbb

Please sign in to comment.