From 1ab562a43177aaf10f994bfadcbc8b4ff6467153 Mon Sep 17 00:00:00 2001 From: Valentine Boineau Date: Wed, 21 Oct 2020 15:09:50 +0200 Subject: [PATCH] Bad handling TransportException --- Sdk/Api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sdk/Api.php b/Sdk/Api.php index 71df2bd..69f12e3 100644 --- a/Sdk/Api.php +++ b/Sdk/Api.php @@ -23,6 +23,7 @@ use SensioLabs\Insight\Sdk\Model\Project; use SensioLabs\Insight\Sdk\Model\Projects; use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; +use Symfony\Contracts\HttpClient\Exception\ExceptionInterface; use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface; use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; @@ -271,7 +272,7 @@ private function processClientError(HttpExceptionInterface $e) throw new ApiClientException($message, $error, 0, $e); } - private function logException(HttpExceptionInterface $e) + private function logException(ExceptionInterface $e) { $message = sprintf("Exception: Class: \"%s\", Message: \"%s\", Response:\n%s", \get_class($e),