File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public function getResponseFor(RequestInterface $request): ResponseInterface
93
93
*
94
94
* @return BatchResult the new BatchResult with this request-response pair added to it
95
95
*/
96
- public function addResponse (RequestInterface $ request , ResponseInterface $ response ): BatchResult
96
+ public function addResponse (RequestInterface $ request , ResponseInterface $ response ): self
97
97
{
98
98
$ new = clone $ this ;
99
99
$ new ->responses ->attach ($ request , $ response );
@@ -165,7 +165,7 @@ public function getExceptionFor(RequestInterface $request): Exception
165
165
*
166
166
* @return BatchResult the new BatchResult with this request-exception pair added to it
167
167
*/
168
- public function addException (RequestInterface $ request , Exception $ exception ): BatchResult
168
+ public function addException (RequestInterface $ request , Exception $ exception ): self
169
169
{
170
170
$ new = clone $ this ;
171
171
$ new ->exceptions ->attach ($ request , $ exception );
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function getState(): string
76
76
77
77
/**
78
78
* Resolve this deferred with a Response.
79
- *
79
+ *
80
80
* @param ResponseInterface $response
81
81
*/
82
82
public function resolve (ResponseInterface $ response )
@@ -95,7 +95,7 @@ public function resolve(ResponseInterface $response)
95
95
96
96
/**
97
97
* Reject this deferred with an Exception.
98
- *
98
+ *
99
99
* @param Exception $exception
100
100
*/
101
101
public function reject (Exception $ exception )
Original file line number Diff line number Diff line change 4
4
5
5
use Http \Client \HttpAsyncClient ;
6
6
use Http \Client \HttpClient ;
7
- use Psr \Http \Client \ClientInterface ;
8
7
9
8
/**
10
9
* A flexible http client, which implements both interface and will emulate
Original file line number Diff line number Diff line change 3
3
namespace Http \Client \Common ;
4
4
5
5
use Http \Client \HttpAsyncClient ;
6
- use Http \Promise \Promise ;
7
6
use Psr \Http \Message \RequestInterface ;
8
7
9
8
/**
You can’t perform that action at this time.
0 commit comments