Преглед изворни кода

Verify handlers types, fixes #1131

Jordi Boggiano пре 7 година
родитељ
комит
120c434db9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Monolog/Logger.php

+ 1 - 1
src/Monolog/Logger.php

@@ -147,7 +147,7 @@ class Logger implements LoggerInterface
     public function __construct($name, array $handlers = array(), array $processors = array())
     {
         $this->name = $name;
-        $this->handlers = $handlers;
+        $this->setHandlers($handlers);
         $this->processors = $processors;
     }