1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Merge pull request #1512 from perevoshchikov/fix/handler-wrapper

Adds return value in handler wrapper
This commit is contained in:
Jordi Boggiano
2020-12-10 11:04:50 +01:00
committed by GitHub

View File

@@ -108,6 +108,8 @@ class HandlerWrapper implements HandlerInterface, ProcessableHandlerInterface, F
{
if ($this->handler instanceof FormattableHandlerInterface) {
$this->handler->setFormatter($formatter);
return $this;
}
throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);