mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 04:37:38 +02:00
Adds return value in handler wrapper
This commit is contained in:
@@ -108,6 +108,8 @@ class HandlerWrapper implements HandlerInterface, ProcessableHandlerInterface, F
|
|||||||
{
|
{
|
||||||
if ($this->handler instanceof FormattableHandlerInterface) {
|
if ($this->handler instanceof FormattableHandlerInterface) {
|
||||||
$this->handler->setFormatter($formatter);
|
$this->handler->setFormatter($formatter);
|
||||||
|
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);
|
throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);
|
||||||
|
Reference in New Issue
Block a user