{"record":{"id":"88eb24f1f78b8b89","repo":"Seldaek/monolog","slug":"you-tried-to-pop-from-an-empty-processor-stack-88eb24","errorCode":null,"errorMessage":"You tried to pop from an empty processor stack.","messagePattern":"You tried to pop from an empty processor stack\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Logger.php","lineNumber":276,"sourceCode":"     * @return $this\n     */\n    public function pushProcessor(ProcessorInterface|callable $callback): self\n    {\n        array_unshift($this->processors, $callback);\n\n        return $this;\n    }\n\n    /**\n     * Removes the processor on top of the stack and returns it.\n     *\n     * @phpstan-return ProcessorInterface|(callable(LogRecord): LogRecord)\n     * @throws \\LogicException If empty processor stack\n     */\n    public function popProcessor(): callable\n    {\n        if (0 === \\count($this->processors)) {\n            throw new \\LogicException('You tried to pop from an empty processor stack.');\n        }\n\n        return array_shift($this->processors);\n    }\n\n    /**\n     * @return callable[]\n     * @phpstan-return array<ProcessorInterface|(callable(LogRecord): LogRecord)>\n     */\n    public function getProcessors(): array\n    {\n        return $this->processors;\n    }\n\n    /**\n     * Control the use of microsecond resolution timestamps in the 'datetime'\n     * member of new records.\n     *","sourceCodeStart":258,"sourceCodeEnd":294,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Logger.php#L258-L294","documentation":"Error \"You tried to pop from an empty processor stack.\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Logger.php:276 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"57eb1028342134e701e77c617565d51b6e5a2a53","analyzedAt":"2026-08-17T02:36:30.259Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}