diff --git a/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php b/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php index c7df65486efdf..11215199765b6 100644 --- a/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php +++ b/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php @@ -111,7 +111,7 @@ public function collect(Request $request, Response $response, \Throwable $except $logoutUrl = null; try { $logoutUrl = $this->logoutUrlGenerator?->getLogoutPath(); - } catch (\Exception) { + } catch (\Throwable) { // fail silently when the logout URL cannot be generated }