diff --git a/Collector/Formatter.php b/Collector/Formatter.php index de648c83..7732600f 100644 --- a/Collector/Formatter.php +++ b/Collector/Formatter.php @@ -8,7 +8,6 @@ use Http\Message\Formatter as MessageFormatter; use Http\Message\Formatter\CurlCommandFormatter; use Psr\Http\Client\NetworkExceptionInterface; -use Psr\Http\Client\RequestExceptionInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; @@ -51,7 +50,7 @@ public function __construct(MessageFormatter $formatter, CurlCommandFormatter $c */ public function formatException(Exception $exception) { - if ($exception instanceof HttpException || $exception instanceof RequestExceptionInterface) { + if ($exception instanceof HttpException) { return $this->formatter->formatResponse($exception->getResponse()); } diff --git a/Collector/ProfileClient.php b/Collector/ProfileClient.php index 213d727f..58d7b1ac 100644 --- a/Collector/ProfileClient.php +++ b/Collector/ProfileClient.php @@ -8,7 +8,6 @@ use Http\Client\HttpAsyncClient; use Http\Client\HttpClient; use Psr\Http\Client\ClientInterface; -use Psr\Http\Client\RequestExceptionInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Symfony\Component\Stopwatch\Stopwatch; @@ -183,7 +182,7 @@ private function collectResponseInformations(ResponseInterface $response, Stopwa */ private function collectExceptionInformations(\Exception $exception, StopwatchEvent $event, Stack $stack) { - if ($exception instanceof HttpException || $exception instanceof RequestExceptionInterface) { + if ($exception instanceof HttpException) { $this->collectResponseInformations($exception->getResponse(), $event, $stack); }