1
0
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:
Jordi Boggiano
2018-11-03 18:03:58 +01:00
committed by GitHub
parent 228a763397
commit bcc4ecfe33

View File

@@ -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;