Skip to content

Commit d5ee52b

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

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Authenticator/TokenAuthenticator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ class TokenAuthenticator extends AbstractAuthenticator implements StatelessInter
4646
public function __construct(?IdentifierInterface $identifier, array $config = [])
4747
{
4848
// If no identifier is configured, set up a default Token identifier
49-
if ($identifier === null) {
50-
$identifier = IdentifierFactory::create('Authentication.Token');
51-
}
49+
$identifier ??= IdentifierFactory::create('Authentication.Token');
5250

5351
parent::__construct($identifier, $config);
5452
}

0 commit comments

Comments
 (0)