mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
FilterHandler: fix handle empty batch of filtered records
This commit is contained in:
@@ -128,7 +128,7 @@ class FilterHandler extends AbstractHandler
|
||||
}
|
||||
}
|
||||
|
||||
$this->getHandler($filtered[count($filtered) - 1])->handleBatch($filtered);
|
||||
$this->getHandler(count($filtered) > 0 ? $filtered[count($filtered) - 1] : null)->handleBatch($filtered);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user