Skip to content

Commit 6480113

Browse files
dereuromarkADmad
andauthored
Update src/Authenticator/JwtAuthenticator.php
Co-authored-by: ADmad <admad.coder@gmail.com>
1 parent f6dab98 commit 6480113

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Authenticator/JwtAuthenticator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ class JwtAuthenticator extends TokenAuthenticator
5858
public function __construct(?IdentifierInterface $identifier, array $config = [])
5959
{
6060
// Override parent's default - JWT should use JwtSubject identifier
61-
if ($identifier === null) {
62-
$identifier = IdentifierFactory::create('Authentication.JwtSubject');
63-
}
61+
$identifier ??= IdentifierFactory::create('Authentication.JwtSubject');
6462

6563
// Call AbstractAuthenticator's constructor directly to skip parent's default
6664
AbstractAuthenticator::__construct($identifier, $config);

0 commit comments

Comments
 (0)