{"record":{"id":"d3122a9fe3b77e5d","repo":"tymondesigns/jwt-auth","slug":"the-claim-s-does-not-exist-on-the-payload","errorCode":null,"errorMessage":"The claim [%s] does not exist on the payload.","messagePattern":"The claim \\[(.+?)\\] does not exist on the payload\\.","errorType":"exception","errorClass":"BadMethodCallException","httpStatus":null,"severity":"error","filePath":"src/Payload.php","lineNumber":283,"sourceCode":"     * Magically get a claim value.\n     *\n     * @param  string  $method\n     * @param  array  $parameters\n     * @return mixed\n     *\n     * @throws \\BadMethodCallException\n     */\n    public function __call($method, $parameters)\n    {\n        if (preg_match('/get(.+)\\b/i', $method, $matches)) {\n            foreach ($this->claims as $claim) {\n                if (get_class($claim) === 'Tymon\\\\JWTAuth\\\\Claims\\\\'.$matches[1]) {\n                    return $claim->getValue();\n                }\n            }\n        }\n\n        throw new BadMethodCallException(sprintf('The claim [%s] does not exist on the payload.', Str::after($method, 'get')));\n    }\n}\n","sourceCodeStart":265,"sourceCodeEnd":286,"githubUrl":"https://github.com/tymondesigns/jwt-auth/blob/6c70930a92710d97e8e52b182fca2176097f33be/src/Payload.php#L265-L286","documentation":"Error \"The claim [%s] does not exist on the payload.\" thrown in tymondesigns/jwt-auth.","triggerScenarios":"Thrown at src/Payload.php:283 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":"6c70930a92710d97e8e52b182fca2176097f33be","analyzedAt":"2026-08-21T02:16:37.040Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}