{"record":{"id":"e65ae9a5361007d6","repo":"Seldaek/monolog","slug":"call-to-undefined-method","errorCode":null,"errorMessage":"Call to undefined method {}::{}()","messagePattern":"Call to undefined method (.+?)::(.+?)\\(\\)","errorType":"exception","errorClass":"BadMethodCallException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/TestHandler.php","lineNumber":201,"sourceCode":"\n    /**\n     * @param mixed[] $args\n     */\n    #[NoDiscard]\n    public function __call(string $method, array $args): bool\n    {\n        if ((bool) preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches)) {\n            $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3];\n            $level = \\constant(Level::class.'::' . $matches[2]);\n            $callback = [$this, $genericMethod];\n            if (\\is_callable($callback)) {\n                $args[] = $level;\n\n                return \\call_user_func_array($callback, $args);\n            }\n        }\n\n        throw new \\BadMethodCallException('Call to undefined method ' . \\get_class($this) . '::' . $method . '()');\n    }\n}\n","sourceCodeStart":183,"sourceCodeEnd":204,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/TestHandler.php#L183-L204","documentation":"Error \"Call to undefined method {}::{}()\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/TestHandler.php:201 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"}