Skip to content

Commit 77289cc

Browse files
committed
[CS] Replace easy occurences of ?: with ??
1 parent 6864087 commit 77289cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CsrfTokenManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class CsrfTokenManager implements CsrfTokenManagerInterface
3939
*/
4040
public function __construct(TokenGeneratorInterface $generator = null, TokenStorageInterface $storage = null, $namespace = null)
4141
{
42-
$this->generator = $generator ?: new UriSafeTokenGenerator();
43-
$this->storage = $storage ?: new NativeSessionTokenStorage();
42+
$this->generator = $generator ?? new UriSafeTokenGenerator();
43+
$this->storage = $storage ?? new NativeSessionTokenStorage();
4444

4545
$superGlobalNamespaceGenerator = function () {
4646
return !empty($_SERVER['HTTPS']) && 'off' !== strtolower($_SERVER['HTTPS']) ? 'https-' : '';

0 commit comments

Comments
 (0)