{"record":{"id":"5216f466798f87b6","repo":"Seldaek/monolog","slug":"unsupported-operation","errorCode":null,"errorMessage":"Unsupported operation","messagePattern":"Unsupported operation","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"src/Monolog/LogRecord.php","lineNumber":74,"sourceCode":"\n            return;\n        }\n\n        throw new \\LogicException('Unsupported operation: setting '.$offset);\n    }\n\n    public function offsetExists(mixed $offset): bool\n    {\n        if ($offset === 'level_name') {\n            return true;\n        }\n\n        return isset($this->{$offset});\n    }\n\n    public function offsetUnset(mixed $offset): void\n    {\n        throw new \\LogicException('Unsupported operation');\n    }\n\n    public function &offsetGet(mixed $offset): mixed\n    {\n        // handle special cases for the level enum\n        if ($offset === 'level_name') {\n            // avoid returning readonly props by ref as this is illegal\n            $copy = $this->level->getName();\n\n            return $copy;\n        }\n        if ($offset === 'level') {\n            // avoid returning readonly props by ref as this is illegal\n            $copy = $this->level->value;\n\n            return $copy;\n        }\n","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/LogRecord.php#L56-L92","documentation":"Error \"Unsupported operation\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/LogRecord.php:74 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"}