Bläddra i källkod

Allow string also for level

Mponos George 5 år sedan
förälder
incheckning
c6a56f0e33
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/Monolog/Handler/OverflowHandler.php

+ 2 - 2
src/Monolog/Handler/OverflowHandler.php

@@ -61,13 +61,13 @@ class OverflowHandler extends AbstractHandler implements FormattableHandlerInter
     /**
      * @param HandlerInterface $handler
      * @param int[]            $thresholdMap Dictionary of logger level => threshold
-     * @param int              $level
+     * @param int|string       $level        The minimum logging level at which this handler will be triggered
      * @param bool             $bubble
      */
     public function __construct(
         HandlerInterface $handler,
         array $thresholdMap = [],
-        int $level = Logger::DEBUG,
+        $level = Logger::DEBUG,
         bool $bubble = true
     ) {
         $this->handler = $handler;