mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Wrap up type-hint adding to all handlers
This commit is contained in:
@@ -23,14 +23,17 @@ use Monolog\Logger;
|
||||
*/
|
||||
class NullHandler extends Handler
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $level;
|
||||
|
||||
/**
|
||||
* @param int $level The minimum logging level at which this handler will be triggered
|
||||
* @param string|int $level The minimum logging level at which this handler will be triggered
|
||||
*/
|
||||
public function __construct(int $level = Logger::DEBUG)
|
||||
public function __construct($level = Logger::DEBUG)
|
||||
{
|
||||
$this->level = $level;
|
||||
$this->level = Logger::toMonologLevel($level);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user