1
0
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:
Jordi Boggiano
2018-11-19 23:28:33 +01:00
parent 1c5b0b8ff4
commit 4a33226f25
47 changed files with 338 additions and 352 deletions

View File

@@ -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);
}
/**