Skip to content

Commit

Permalink
Added more parameters to callbacks in XmlNodeList foreach method
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Aug 28, 2024
1 parent dac1f1c commit 8e8b768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xml/XmlNodeList.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ public function forEachMax(int $max, $callback, $callBackBefore = null, $callbac
}

if (is_callable($callbackBeforeEach)) {
call_user_func($callbackBeforeEach);
call_user_func($callbackBeforeEach, $node);
}

call_user_func($callback, $node);

if (is_callable($callbackAfterEach)) {
call_user_func($callbackAfterEach);
call_user_func($callbackAfterEach, $node);
}
}

Expand Down

0 comments on commit 8e8b768

Please sign in to comment.