From 3b77f869656925a7f40919cf7f97a45b891a63d6 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Thu, 31 Mar 2022 18:23:12 +0200 Subject: [PATCH] Leverage non-capturing catches --- EsendexTransport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EsendexTransport.php b/EsendexTransport.php index 9671aa2..f59e640 100644 --- a/EsendexTransport.php +++ b/EsendexTransport.php @@ -105,10 +105,10 @@ protected function doSend(MessageInterface $message): SentMessage $message .= sprintf(' Details from Esendex: %s: "%s".', $error['code'], $error['description']); } - } catch (HttpClientTransportException $e) { + } catch (HttpClientTransportException) { // Catching this exception is useful to keep compatibility, with symfony/http-client < 4.4.10 // See https://github.com/symfony/symfony/pull/37065 - } catch (JsonException $e) { + } catch (JsonException) { } throw new TransportException($message, $response);