mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 20:27:31 +02:00
Removed useless type hints and make sure level is only an int after normalization
This commit is contained in:
@@ -21,7 +21,7 @@ use Monolog\Logger;
|
|||||||
class ErrorLevelActivationStrategy implements ActivationStrategyInterface
|
class ErrorLevelActivationStrategy implements ActivationStrategyInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string|int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $actionLevel;
|
private $actionLevel;
|
||||||
|
|
||||||
@@ -33,10 +33,6 @@ class ErrorLevelActivationStrategy implements ActivationStrategyInterface
|
|||||||
$this->actionLevel = Logger::toMonologLevel($actionLevel);
|
$this->actionLevel = Logger::toMonologLevel($actionLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array $record
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function isHandlerActivated(array $record): bool
|
public function isHandlerActivated(array $record): bool
|
||||||
{
|
{
|
||||||
return $record['level'] >= $this->actionLevel;
|
return $record['level'] >= $this->actionLevel;
|
||||||
|
Reference in New Issue
Block a user