diff options
Diffstat (limited to 'src/Monolog/Handler')
-rw-r--r-- | src/Monolog/Handler/AbstractHandler.php | 3 | ||||
-rw-r--r-- | src/Monolog/Handler/AbstractProcessingHandler.php | 10 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/Monolog/Handler/AbstractHandler.php b/src/Monolog/Handler/AbstractHandler.php index 3e1700d..315279c 100644 --- a/src/Monolog/Handler/AbstractHandler.php +++ b/src/Monolog/Handler/AbstractHandler.php @@ -81,6 +81,9 @@ abstract class AbstractHandler implements HandlerInterface */ public function popProcessor() { + if (!$this->processors) { + throw new \LogicException('You tried to pop from an empty processor stack.'); + } return array_shift($this->processors); } diff --git a/src/Monolog/Handler/AbstractProcessingHandler.php b/src/Monolog/Handler/AbstractProcessingHandler.php index 7f0d6dc..9babe03 100644 --- a/src/Monolog/Handler/AbstractProcessingHandler.php +++ b/src/Monolog/Handler/AbstractProcessingHandler.php @@ -44,16 +44,6 @@ abstract class AbstractProcessingHandler extends AbstractHandler } /** - * {@inheritdoc} - */ - public function handleBatch(array $records) - { - foreach ($records as $record) { - $this->handle($record); - } - } - - /** * Writes the record down to the log of the implementing handler * * @param array $record |