Skip to content

Commit 709c44c

Browse files
Add types to public and protected properties
1 parent 6889593 commit 709c44c

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

Authentication/DefaultAuthenticationFailureHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
*/
3333
class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface
3434
{
35-
protected $httpKernel;
36-
protected $httpUtils;
37-
protected $logger;
38-
protected $options;
39-
protected $defaultOptions = [
35+
protected HttpKernelInterface $httpKernel;
36+
protected HttpUtils $httpUtils;
37+
protected array $options;
38+
protected ?LoggerInterface $logger;
39+
protected array $defaultOptions = [
4040
'failure_path' => null,
4141
'failure_forward' => false,
4242
'login_path' => '/login',

Authentication/DefaultAuthenticationSuccessHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle
3030
{
3131
use TargetPathTrait;
3232

33-
protected $httpUtils;
34-
protected $logger;
35-
protected $options;
36-
protected $firewallName;
37-
protected $defaultOptions = [
33+
protected HttpUtils $httpUtils;
34+
protected array $options;
35+
protected ?LoggerInterface $logger;
36+
protected ?string $firewallName = null;
37+
protected array $defaultOptions = [
3838
'always_use_default_target_path' => false,
3939
'default_target_path' => '/',
4040
'login_path' => '/login',

Authenticator/Passport/Passport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class Passport
2929
{
30-
protected $user;
30+
protected UserInterface $user;
3131

3232
private array $badges = [];
3333
private array $attributes = [];

RememberMe/AbstractRememberMeHandler.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@
2323
*/
2424
abstract class AbstractRememberMeHandler implements RememberMeHandlerInterface
2525
{
26+
protected RequestStack $requestStack;
27+
protected array $options;
28+
protected ?LoggerInterface $logger;
29+
2630
private UserProviderInterface $userProvider;
27-
protected $requestStack;
28-
protected $options;
29-
protected $logger;
3031

3132
public function __construct(UserProviderInterface $userProvider, RequestStack $requestStack, array $options = [], LoggerInterface $logger = null)
3233
{

0 commit comments

Comments
 (0)