diff --git a/src/Monolog/Handler/ForwardHandler.php b/src/Monolog/Handler/ForwardHandler.php index db0625a2..3a36dafe 100644 --- a/src/Monolog/Handler/ForwardHandler.php +++ b/src/Monolog/Handler/ForwardHandler.php @@ -71,7 +71,7 @@ class ForwardHandler extends AbstractHandler { foreach ($this->handlers as &$handler) { if (!$handler instanceof HandlerInterface) { - $handler = call_user_func($this->handler, $record, $this); + $handler = call_user_func($handler, $record, $this); if (!$handler instanceof HandlerInterface) { throw new \RuntimeException("The factory callback should return a HandlerInterface"); }