refactor(security): replace generic event with severity enum

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-08-05 23:59:49 -04:00
parent 3f9c2500d9
commit 84eb0e2c21
27 changed files with 80 additions and 247 deletions
@@ -97,8 +97,8 @@ final class RateLimitExceededEvent extends Event implements SecurityRequestEvent
return $this->reason;
}
public function getSeverity(): int
public function getSeverity(): SecurityEventSeverity
{
return SecurityEvent::SEVERITY_ERROR;
return SecurityEventSeverity::ERROR;
}
}