Skip to content

Commit 702c90b

Browse files
Add types to private and internal properties
1 parent 4ca59ad commit 702c90b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Authenticator/Passport/Passport.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Passport
3333
private array $attributes = [];
3434

3535
/**
36-
* @param CredentialsInterface $credentials the credentials to check for this authentication, use
36+
* @param CredentialsInterface $credentials The credentials to check for this authentication, use
3737
* SelfValidatingPassport if no credentials should be checked
3838
* @param BadgeInterface[] $badges
3939
*/
@@ -48,7 +48,7 @@ public function __construct(UserBadge $userBadge, CredentialsInterface $credenti
4848

4949
public function getUser(): UserInterface
5050
{
51-
if (null === $this->user) {
51+
if (!isset($this->user)) {
5252
if (!$this->hasBadge(UserBadge::class)) {
5353
throw new \LogicException('Cannot get the Security user, no username or UserBadge configured for this passport.');
5454
}
@@ -66,9 +66,9 @@ public function getUser(): UserInterface
6666
* This method replaces the current badge if it is already set on this
6767
* passport.
6868
*
69-
* @param string|null $badgeFqcn A FQCN to which the badge should be mapped to.
70-
* This allows replacing a built-in badge by a custom one using
71-
*. e.g. addBadge(new MyCustomUserBadge(), UserBadge::class)
69+
* @param string|null $badgeFqcn A FQCN to which the badge should be mapped to.
70+
* This allows replacing a built-in badge by a custom one using
71+
*. e.g. addBadge(new MyCustomUserBadge(), UserBadge::class)
7272
*
7373
* @return $this
7474
*/

0 commit comments

Comments
 (0)