Przeglądaj źródła

Merge pull request #1244 from gmponos/missed_parameter

Parameter formatter was never set.. would cause fatal
Jordi Boggiano 7 lat temu
rodzic
commit
c141ce55fe
1 zmienionych plików z 1 dodań i 1 usunięć
  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
     {
         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);