Skip to content

Commit bfa6128

Browse files
committed
Make use of the nullsafe operator
1 parent 4e92850 commit bfa6128

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DataCollector/SecurityDataCollector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ public function collect(Request $request, Response $response, \Throwable $except
110110

111111
$logoutUrl = null;
112112
try {
113-
if (null !== $this->logoutUrlGenerator) {
114-
$logoutUrl = $this->logoutUrlGenerator->getLogoutPath();
115-
}
113+
$logoutUrl = $this->logoutUrlGenerator?->getLogoutPath();
116114
} catch (\Exception $e) {
117115
// fail silently when the logout URL cannot be generated
118116
}

0 commit comments

Comments
 (0)