Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Collector/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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());
}

Expand Down
3 changes: 1 addition & 2 deletions Collector/ProfileClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down