diff --git a/src/xml/XmlNodeList.php b/src/xml/XmlNodeList.php index 3e63c7b..0257a52 100644 --- a/src/xml/XmlNodeList.php +++ b/src/xml/XmlNodeList.php @@ -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); } }