refactor(security): replace generic event with severity enum
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -32,8 +32,8 @@ final class AuthenticationFailedEvent extends Event implements SecurityEventInte
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
public function getSeverity(): int
|
||||
public function getSeverity(): SecurityEventSeverity
|
||||
{
|
||||
return SecurityEvent::SEVERITY_WARNING;
|
||||
return SecurityEventSeverity::WARNING;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user