Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 23a5bc3

Browse files
jdreesenscheb
authored andcommitted
Use null coalescing operator instead of ternary if
1 parent 07a1e3d commit 23a5bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/Http/Firewall/TwoFactorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function __construct(
139139
$this->twoFactorAccessDecider = $twoFactorAccessDecider;
140140
$this->eventDispatcher = $eventDispatcher;
141141
$this->twoFactorTokenFactory = $twoFactorTokenFactory;
142-
$this->logger = $logger === null ? new NullLogger() : $logger;
142+
$this->logger = $logger ?? new NullLogger();
143143
$this->trustedDeviceManager = $trustedDeviceManager;
144144
}
145145

0 commit comments

Comments
 (0)