From ed46997f58b3dc63dd080ae5e197c0483c410459 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 30 Jan 2020 17:41:20 +0100 Subject: [PATCH] Fix typehint for AbstractHandler level parameter The level parameter of the AbstractHandler supports also the PSR levels as strings e.g. `\Psr\Log\LogLevel::ERROR` or from a ENV variable `CUSTOM_ERROR_HANDLER_LEVEL=error` --- src/Monolog/Handler/AbstractHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/AbstractHandler.php b/src/Monolog/Handler/AbstractHandler.php index 92b9d458..cdd9f7d4 100644 --- a/src/Monolog/Handler/AbstractHandler.php +++ b/src/Monolog/Handler/AbstractHandler.php @@ -33,8 +33,8 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface protected $processors = array(); /** - * @param int $level The minimum logging level at which this handler will be triggered - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * @param int|string $level The minimum logging level at which this handler will be triggered + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($level = Logger::DEBUG, $bubble = true) {