From fab160a3192ea87609c86fc1d030dfd83248e3fc Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Wed, 26 Oct 2022 03:34:50 +0300 Subject: [PATCH] Catch throwable class to catch type error --- .../SecurityBundle/DataCollector/SecurityDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }