1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-16 10:04:14 +02:00

Minor fixes to merged commit

This commit is contained in:
Jordi Boggiano
2011-04-05 10:42:22 +02:00
parent 51928a2f9e
commit e20fd0cc08

View File

@@ -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);