Skip to content

Commit 8e07ae6

Browse files
committed
Leverage non-capturing catches
1 parent 2f9cb38 commit 8e07ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/SecurityDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function collect(Request $request, Response $response, \Throwable $except
111111
$logoutUrl = null;
112112
try {
113113
$logoutUrl = $this->logoutUrlGenerator?->getLogoutPath();
114-
} catch (\Exception $e) {
114+
} catch (\Exception) {
115115
// fail silently when the logout URL cannot be generated
116116
}
117117

0 commit comments

Comments
 (0)