{"record":{"id":"ad3928415ec19b41","repo":"briannesbitt/Carbon","slug":"s-s","errorCode":null,"errorMessage":"%s::%s","messagePattern":"%s::%s","errorType":"exception","errorClass":"UnknownMethodException","httpStatus":null,"severity":"error","filePath":"src/Carbon/Traits/Date.php","lineNumber":2507,"sourceCode":"     *\n     * @param string $method     magic method name called\n     * @param array  $parameters parameters list\n     *\n     * @throws BadMethodCallException\n     */\n    public static function __callStatic(string $method, array $parameters): mixed\n    {\n        if (!static::hasMacro($method)) {\n            foreach (static::getGenericMacros() as $callback) {\n                try {\n                    return static::executeStaticCallable($callback, $method, ...$parameters);\n                } catch (BadMethodCallException) {\n                    continue;\n                }\n            }\n\n            if (static::isStrictModeEnabled()) {\n                throw new UnknownMethodException(\\sprintf('%s::%s', static::class, $method));\n            }\n\n            return null;\n        }\n\n        return static::executeStaticCallable(static::getMacro($method), ...$parameters);\n    }\n\n    /**\n     * Set specified unit to new given value.\n     *\n     * @param string                 $unit      year, month, day, hour, minute, second or microsecond\n     * @param Month|int|float|null   $value     new value for given unit\n     * @param OverflowMode|bool|null $overflow  either overflow (when the day does not exist in current month)\n     *                                          is allowed or not, or should use an anchor day\n     * @param ?int                   $anchorDay the day to which to go after setting year/quarter/month,\n     *                                          if given but it does not exist in current month, it will\n     *                                          go to the last day of the month","sourceCodeStart":2489,"sourceCodeEnd":2525,"githubUrl":"https://github.com/briannesbitt/Carbon/blob/b13f05955dcfd7da71d60af745fd148cbdb73505/src/Carbon/Traits/Date.php#L2489-L2525","documentation":"Error \"%s::%s\" thrown in briannesbitt/Carbon.","triggerScenarios":"Thrown at src/Carbon/Traits/Date.php:2507 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"}