summaryrefslogtreecommitdiffstats
path: root/src/Monolog/Handler/AbstractHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Monolog/Handler/AbstractHandler.php')
-rw-r--r--src/Monolog/Handler/AbstractHandler.php3
1 files changed, 3 insertions, 0 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);
}