mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 12:17:35 +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
|
||||
{
|
||||
/**
|
||||
* @var string|int
|
||||
* @var int
|
||||
*/
|
||||
private $actionLevel;
|
||||
|
||||
@@ -33,10 +33,6 @@ class ErrorLevelActivationStrategy implements ActivationStrategyInterface
|
||||
$this->actionLevel = Logger::toMonologLevel($actionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $record
|
||||
* @return bool
|
||||
*/
|
||||
public function isHandlerActivated(array $record): bool
|
||||
{
|
||||
return $record['level'] >= $this->actionLevel;
|
||||
|
Reference in New Issue
Block a user