Browse Source

Minor fixes to merged commit

Jordi Boggiano 14 năm trước cách đây
mục cha
commit
e20fd0cc08
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);