{"record":{"id":"f837abb92e528143","repo":"tymondesigns/jwt-auth","slug":"the-payload-is-immutable","errorCode":null,"errorMessage":"The payload is immutable","messagePattern":"The payload is immutable","errorType":"exception","errorClass":"Tymon\\JWTAuth\\Exceptions\\PayloadException","httpStatus":null,"severity":"error","filePath":"src/Payload.php","lineNumber":225,"sourceCode":"     */\n    #[\\ReturnTypeWillChange]\n    public function offsetGet($key)\n    {\n        return Arr::get($this->toArray(), $key);\n    }\n\n    /**\n     * Don't allow changing the payload as it should be immutable.\n     *\n     * @param  mixed  $key\n     * @param  mixed  $value\n     *\n     * @throws \\Tymon\\JWTAuth\\Exceptions\\PayloadException\n     */\n    #[\\ReturnTypeWillChange]\n    public function offsetSet($key, $value)\n    {\n        throw new PayloadException('The payload is immutable');\n    }\n\n    /**\n     * Don't allow changing the payload as it should be immutable.\n     *\n     * @param  string  $key\n     * @return void\n     *\n     * @throws \\Tymon\\JWTAuth\\Exceptions\\PayloadException\n     */\n    #[\\ReturnTypeWillChange]\n    public function offsetUnset($key)\n    {\n        throw new PayloadException('The payload is immutable');\n    }\n\n    /**\n     * Count the number of claims.","sourceCodeStart":207,"sourceCodeEnd":243,"githubUrl":"https://github.com/tymondesigns/jwt-auth/blob/6c70930a92710d97e8e52b182fca2176097f33be/src/Payload.php#L207-L243","documentation":"Error \"The payload is immutable\" thrown in tymondesigns/jwt-auth.","triggerScenarios":"Thrown at src/Payload.php:225 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"}