{"record":{"id":"6904c757c8f8ac45","repo":"briannesbitt/Carbon","slug":"method","errorCode":null,"errorMessage":"$method","messagePattern":"\\$method","errorType":"exception","errorClass":"UnknownMethodException","httpStatus":null,"severity":"error","filePath":"src/Carbon/Traits/Date.php","lineNumber":3014,"sourceCode":"        return null;\n    }\n\n    private function callMacroMethod(string $method, array $parameters): mixed\n    {\n        return static::bindMacroContext($this, function () use (&$method, &$parameters) {\n            $macro = $this->getLocalMacro($method);\n\n            if (!$macro) {\n                foreach ($this->getAllGenericMacros() as $callback) {\n                    try {\n                        return $this->executeCallable($callback, $method, ...$parameters);\n                    } catch (BadMethodCallException) {\n                        continue;\n                    }\n                }\n\n                if ($this->isLocalStrictModeEnabled()) {\n                    throw new UnknownMethodException($method);\n                }\n\n                return null;\n            }\n\n            return $this->executeCallable($macro, ...$parameters);\n        });\n    }\n\n    private static function floorZeroPad(int|float $value, int $length): string\n    {\n        return str_pad((string) floor($value), $length, '0', STR_PAD_LEFT);\n    }\n\n    /**\n     * @template T of CarbonInterface\n     *\n     * @param T $date","sourceCodeStart":2996,"sourceCodeEnd":3032,"githubUrl":"https://github.com/briannesbitt/Carbon/blob/b13f05955dcfd7da71d60af745fd148cbdb73505/src/Carbon/Traits/Date.php#L2996-L3032","documentation":"Error \"$method\" thrown in briannesbitt/Carbon.","triggerScenarios":"Thrown at src/Carbon/Traits/Date.php:3014 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":"b13f05955dcfd7da71d60af745fd148cbdb73505","analyzedAt":"2026-08-17T04:40:56.953Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}