{"record":{"id":"94739b77408f1efb","repo":"Seldaek/monolog","slug":"the-wrapped-handler-does-not-implement-monolog-han-94739b","errorCode":null,"errorMessage":"The wrapped handler does not implement Monolog\\Handler\\FormattableHandlerInterface","messagePattern":"The wrapped handler does not implement Monolog\\\\Handler\\\\FormattableHandlerInterface","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/HandlerWrapper.php","lineNumber":113,"sourceCode":"        if ($this->handler instanceof ProcessableHandlerInterface) {\n            return $this->handler->popProcessor();\n        }\n\n        throw new \\LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class);\n    }\n\n    /**\n     * @inheritDoc\n     */\n    public function setFormatter(FormatterInterface $formatter): HandlerInterface\n    {\n        if ($this->handler instanceof FormattableHandlerInterface) {\n            $this->handler->setFormatter($formatter);\n\n            return $this;\n        }\n\n        throw new \\LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);\n    }\n\n    /**\n     * @inheritDoc\n     */\n    public function getFormatter(): FormatterInterface\n    {\n        if ($this->handler instanceof FormattableHandlerInterface) {\n            return $this->handler->getFormatter();\n        }\n\n        throw new \\LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);\n    }\n\n    public function reset(): void\n    {\n        if ($this->handler instanceof ResettableInterface) {\n            $this->handler->reset();","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/HandlerWrapper.php#L95-L131","documentation":"Error \"The wrapped handler does not implement Monolog\\Handler\\FormattableHandlerInterface\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/HandlerWrapper.php:113 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"}