1
0
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:
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
{
/**
* @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;