From bcc4ecfe33c5364de8624cc674b9cc72ce49708f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 3 Nov 2018 18:03:58 +0100 Subject: [PATCH] Removed useless type hints and make sure level is only an int after normalization --- .../Handler/FingersCrossed/ErrorLevelActivationStrategy.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php b/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php index 7c0eb6ae..54132b20 100644 --- a/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php +++ b/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php @@ -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;