Seldaek/monolog · error · UnexpectedValueException
The nested handler of type {class} does not support formatte
Error message
The nested handler of type {class} does not support formatters. What it means
Error "The nested handler of type {class} does not support formatters." thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/Handler/FingersCrossedHandler.php:227
$this->handler = $handler;
}
return $this->handler;
}
/**
* @inheritDoc
*/
public function setFormatter(FormatterInterface $formatter): HandlerInterface
{
$handler = $this->getHandler();
if ($handler instanceof FormattableHandlerInterface) {
$handler->setFormatter($formatter);
return $this;
}
throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.');
}
/**
* @inheritDoc
*/
public function getFormatter(): FormatterInterface
{
$handler = $this->getHandler();
if ($handler instanceof FormattableHandlerInterface) {
return $handler->getFormatter();
}
throw new \UnexpectedValueException('The nested handler of type '.\get_class($handler).' does not support formatters.');
}
}
View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/Handler/FingersCrossedHandler.php:227 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/e3e8942e37f28c21.
Report an issue: GitHub.