Skip to content

Commit

Permalink
Leverage non-capturing catches
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Apr 1, 2022
1 parent 7f7a2cf commit 3b77f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EsendexTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b77f86

Please sign in to comment.