Skip to content

Commit 09b46f3

Browse files
committed
Make dispatched events really final
1 parent 41e7f2e commit 09b46f3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Event/AuthenticationFailureEvent.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
* This event is dispatched on authentication failure.
1919
*
2020
* @author Johannes M. Schmitt <[email protected]>
21-
*
22-
* @final since Symfony 4.4
2321
*/
24-
class AuthenticationFailureEvent extends AuthenticationEvent
22+
final class AuthenticationFailureEvent extends AuthenticationEvent
2523
{
2624
private $authenticationException;
2725

@@ -32,7 +30,7 @@ public function __construct(TokenInterface $token, AuthenticationException $ex)
3230
$this->authenticationException = $ex;
3331
}
3432

35-
public function getAuthenticationException()
33+
public function getAuthenticationException(): AuthenticationException
3634
{
3735
return $this->authenticationException;
3836
}

Event/AuthenticationSuccessEvent.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Core\Event;
1313

14-
/**
15-
* @final since Symfony 4.4
16-
*/
17-
class AuthenticationSuccessEvent extends AuthenticationEvent
14+
final class AuthenticationSuccessEvent extends AuthenticationEvent
1815
{
1916
}

0 commit comments

Comments
 (0)