瀏覽代碼

Minor fixes to merged commit

Jordi Boggiano 15 年之前
父節點
當前提交
e20fd0cc08
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Monolog/Handler/FingersCrossedHandler.php

+ 2 - 2
src/Monolog/Handler/FingersCrossedHandler.php

@@ -63,10 +63,10 @@ class FingersCrossedHandler extends AbstractHandler
             if ($record['level'] >= $this->actionLevel) {
                 $this->buffering = false;
                 if (!$this->handler instanceof HandlerInterface) {
-                    $this->handler = call_user_func_array($this->handler, array($record, $this));
+                    $this->handler = call_user_func($this->handler, $record, $this);
                 }
                 if (!$this->handler instanceof HandlerInterface) {
-                    throw new \RuntimeException("The factory callback should return an HandlerInterface");
+                    throw new \RuntimeException("The factory callback should return a HandlerInterface");
                 }
                 foreach ($this->buffer as $record) {
                     $this->handler->handle($record);