Skip to content

Commit 808fc5d

Browse files
Merge branch '6.4' into 7.0
* 6.4: fix typo Add types to private and internal properties [Workflow] Cleaning code [Scheduler] Fix NPE in debug:scheduler command
2 parents 4b440ad + 85b7417 commit 808fc5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Authenticator/Passport/Passport.php

Lines changed: 2 additions & 2 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
}

0 commit comments

Comments
 (0)