{"record":{"id":"051420af8bc85e97","repo":"Seldaek/monolog","slug":"the-nested-handler-of-type-class-does-not-suppo","errorCode":null,"errorMessage":"The nested handler of type ${class} does not support formatters.","messagePattern":"The nested handler of type (.+?) does not support formatters\\.","errorType":"exception","errorClass":"UnexpectedValueException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/BufferHandler.php","lineNumber":151,"sourceCode":"        $this->resetProcessors();\n\n        if ($this->handler instanceof ResettableInterface) {\n            $this->handler->reset();\n        }\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 \\UnexpectedValueException('The nested handler of type '.\\get_class($this->handler).' does not support formatters.');\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 \\UnexpectedValueException('The nested handler of type '.\\get_class($this->handler).' does not support formatters.');\n    }\n\n    public function setHandler(HandlerInterface $handler): void\n    {\n        $this->handler = $handler;\n    }","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/BufferHandler.php#L133-L169","documentation":"Error \"The nested handler of type ${class} does not support formatters.\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/BufferHandler.php:151 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"}