Skip to content

Commit ed46997

Browse files
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`
1 parent fa82921 commit ed46997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Monolog/Handler/AbstractHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface
3333
protected $processors = array();
3434

3535
/**
36-
* @param int $level The minimum logging level at which this handler will be triggered
37-
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
36+
* @param int|string $level The minimum logging level at which this handler will be triggered
37+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
3838
*/
3939
public function __construct($level = Logger::DEBUG, $bubble = true)
4040
{

0 commit comments

Comments
 (0)