Seldaek/monolog · error · LogicException
You tried to pop from an empty processor stack.
Error message
You tried to pop from an empty processor stack.
What it means
Error "You tried to pop from an empty processor stack." thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/Handler/ProcessableHandlerTrait.php:47
protected array $processors = [];
/**
* @inheritDoc
*/
public function pushProcessor(callable $callback): HandlerInterface
{
array_unshift($this->processors, $callback);
return $this;
}
/**
* @inheritDoc
*/
public function popProcessor(): callable
{
if (\count($this->processors) === 0) {
throw new \LogicException('You tried to pop from an empty processor stack.');
}
return array_shift($this->processors);
}
protected function processRecord(LogRecord $record): LogRecord
{
foreach ($this->processors as $processor) {
$record = $processor($record);
}
return $record;
}
protected function resetProcessors(): void
{
foreach ($this->processors as $processor) {
if ($processor instanceof ResettableInterface) {View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/Handler/ProcessableHandlerTrait.php:47 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Seldaek/monolog@57eb102834 (2026-08-17).
Data as JSON: /api/errors/4176f3b97f1d34c8.
Report an issue: GitHub.