Kaynağa Gözat

Parameter formatter was never set.. would cause fatal

George Mponos 7 yıl önce
ebeveyn
işleme
e2a3122e10
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/Monolog/Handler/HandlerWrapper.php

+ 1 - 1
src/Monolog/Handler/HandlerWrapper.php

@@ -119,7 +119,7 @@ class HandlerWrapper implements HandlerInterface, ProcessableHandlerInterface, F
     public function getFormatter(): FormatterInterface
     public function getFormatter(): FormatterInterface
     {
     {
         if ($this->handler instanceof FormattableHandlerInterface) {
         if ($this->handler instanceof FormattableHandlerInterface) {
-            return $this->handler->getFormatter($formatter);
+            return $this->handler->getFormatter();
         }
         }
 
 
         throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);
         throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);