1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 23:56:17 +02:00

added more docblock fixes

This commit is contained in:
George Mponos
2018-12-09 22:48:48 +02:00
parent 790ff7fd1d
commit 208381d43e
4 changed files with 10 additions and 1 deletions

View File

@@ -24,6 +24,9 @@ class GitProcessor implements ProcessorInterface
private $level;
private static $cache;
/**
* @param string|int $level The minimum logging level at which this Processor will be triggered
*/
public function __construct($level = Logger::DEBUG)
{
$this->level = Logger::toMonologLevel($level);

View File

@@ -37,6 +37,9 @@ class IntrospectionProcessor implements ProcessorInterface
'call_user_func_array',
];
/**
* @param string|int $level The minimum logging level at which this Processor will be triggered
*/
public function __construct($level = Logger::DEBUG, array $skipClassesPartials = [], int $skipStackFramesCount = 0)
{
$this->level = Logger::toMonologLevel($level);

View File

@@ -23,6 +23,9 @@ class MercurialProcessor implements ProcessorInterface
private $level;
private static $cache;
/**
* @param string|int $level The minimum logging level at which this Processor will be triggered
*/
public function __construct($level = Logger::DEBUG)
{
$this->level = Logger::toMonologLevel($level);

View File

@@ -24,7 +24,7 @@ class UidProcessor implements ProcessorInterface, ResettableInterface
public function __construct(int $length = 7)
{
if (!is_int($length) || $length > 32 || $length < 1) {
if ($length > 32 || $length < 1) {
throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32');
}