We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abfecd2 commit ad8f049Copy full SHA for ad8f049
src/ReactPromiseAdapter.php
@@ -5,6 +5,7 @@
5
use React\EventLoop\LoopInterface;
6
use React\Promise\PromiseInterface as ReactPromise;
7
use Http\Client\Promise;
8
+use Http\Client\Exception;
9
use Psr\Http\Message\ResponseInterface;
10
11
/**
@@ -54,7 +55,7 @@ function(ResponseInterface $response) {
54
55
$this->state = Promise::FULFILLED;
56
$this->response = $response;
57
},
- function(\Exception $error) {
58
+ function(Exception $error) {
59
$this->state = Promise::REJECTED;
60
$this->exception = $error;
61
}
0 commit comments