Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit faf7d2a

Browse files
committed
Cleanup use statements and use correct interface for Promise
1 parent b80ea87 commit faf7d2a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Guzzle6HttpAdapter.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@
1212

1313
use GuzzleHttp\Client;
1414
use GuzzleHttp\ClientInterface;
15-
use GuzzleHttp\Exception as GuzzleExceptions;
16-
use GuzzleHttp\Promise\PromiseInterface;
17-
use Http\Client\Exception;
18-
use Http\Client\Exception\RequestException;
1915
use Http\Client\HttpAsyncClient;
2016
use Http\Client\HttpClient;
17+
use Http\Client\Promise;
2118
use Psr\Http\Message\RequestInterface;
2219

2320
/**
@@ -46,7 +43,7 @@ public function sendRequest(RequestInterface $request)
4643
$promise = $this->sendAsyncRequest($request);
4744
$promise->wait();
4845

49-
if ($promise->getState() == PromiseInterface::REJECTED) {
46+
if ($promise->getState() == Promise::REJECTED) {
5047
throw $promise->getException();
5148
}
5249

0 commit comments

Comments
 (0)