{"record":{"id":"52cf2083c85dd019","repo":"Seldaek/monolog","slug":"batch-formatting-does-not-make-sense-for-the-wildf","errorCode":null,"errorMessage":"Batch formatting does not make sense for the WildfireFormatter","messagePattern":"Batch formatting does not make sense for the WildfireFormatter","errorType":"exception","errorClass":"BadMethodCallException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Formatter/WildfireFormatter.php","lineNumber":121,"sourceCode":"            $message,\n        ], $handleError);\n\n        // The message itself is a serialization of the above JSON object + it's length\n        return sprintf(\n            '%d|%s|',\n            \\strlen($json),\n            $json\n        );\n    }\n\n    /**\n     * @inheritDoc\n     *\n     * @phpstan-return never\n     */\n    public function formatBatch(array $records)\n    {\n        throw new \\BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter');\n    }\n\n    /**\n     * @inheritDoc\n     *\n     * @return null|scalar|array<mixed[]|scalar|null>|object\n     */\n    protected function normalize(mixed $data, int $depth = 0): mixed\n    {\n        if (\\is_object($data) && !$data instanceof \\DateTimeInterface) {\n            return $data;\n        }\n\n        return parent::normalize($data, $depth);\n    }\n}\n","sourceCodeStart":103,"sourceCodeEnd":138,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Formatter/WildfireFormatter.php#L103-L138","documentation":"Error \"Batch formatting does not make sense for the WildfireFormatter\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Formatter/WildfireFormatter.php:121 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"}