We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8023f9 commit 696acc3Copy full SHA for 696acc3
src/Node.php
@@ -399,7 +399,7 @@ public function getLastChild() {
399
* @return Node|null
400
*/
401
public function getDescendantNodeAtPosition(int $pos) {
402
- foreach ($this->getChildNodes() as $name => $child) {
+ foreach ($this->getChildNodes() as $child) {
403
if ($child->containsPosition($pos)) {
404
$node = $child->getDescendantNodeAtPosition($pos);
405
if (!is_null($node)) {
0 commit comments