Seldaek/monolog · error · LogicException
Unsupported operation: setting {}
Error message
Unsupported operation: setting {} What it means
Error "Unsupported operation: setting {}" thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/LogRecord.php:60
public function offsetSet(mixed $offset, mixed $value): void
{
if ($offset === 'extra') {
if (!\is_array($value)) {
throw new \InvalidArgumentException('extra must be an array');
}
$this->extra = $value;
return;
}
if ($offset === 'formatted') {
$this->formatted = $value;
return;
}
throw new \LogicException('Unsupported operation: setting '.$offset);
}
public function offsetExists(mixed $offset): bool
{
if ($offset === 'level_name') {
return true;
}
return isset($this->{$offset});
}
public function offsetUnset(mixed $offset): void
{
throw new \LogicException('Unsupported operation');
}
public function &offsetGet(mixed $offset): mixed
{View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/LogRecord.php:60 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Seldaek/monolog@57eb102834 (2026-08-17).
Data as JSON: /api/errors/73116e821eef62cb.
Report an issue: GitHub.