File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"prefer-stable" : true ,
14
- "minimum-stability" : " beta " ,
14
+ "minimum-stability" : " dev " ,
15
15
"config" : {
16
16
"bin-dir" : " vendor/bin"
17
17
},
18
18
"require" : {
19
- "php" : " ^5.5 || ^7.0 " ,
19
+ "php" : " ^7.1 " ,
20
20
"ext-curl" : " *" ,
21
- "php-http/httplug" : " ^1.0" ,
21
+ "psr/http-client" : " ^0.3" ,
22
+ "php-http/httplug" : " ^2.0" ,
22
23
"php-http/message-factory" : " ^1.0.2" ,
23
24
"php-http/message" : " ^1.2" ,
24
25
"php-http/discovery" : " ^1.0"
25
26
},
26
27
"require-dev" : {
27
28
"guzzlehttp/psr7" : " ^1.0" ,
28
- "php-http/client-integration-tests" : " ^0.6 " ,
29
+ "php-http/client-integration-tests" : " dev-master " ,
29
30
"phpunit/phpunit" : " ^4.8.27" ,
30
31
"zendframework/zend-diactoros" : " ^1.0"
31
32
},
Original file line number Diff line number Diff line change 10
10
use Http \Message \MessageFactory ;
11
11
use Http \Message \StreamFactory ;
12
12
use Http \Promise \Promise ;
13
+ use Psr \Http \Client \ClientInterface ;
13
14
use Psr \Http \Message \RequestInterface ;
14
15
use Psr \Http \Message \ResponseInterface ;
15
16
24
25
*
25
26
* @since 1.0
26
27
*/
27
- class Client implements HttpClient, HttpAsyncClient
28
+ class Client implements HttpClient, HttpAsyncClient, ClientInterface
28
29
{
29
30
/**
30
31
* cURL options.
@@ -108,7 +109,7 @@ public function __destruct()
108
109
* @since 1.6 Throw NetworkException on network errors
109
110
* @since 1.0
110
111
*/
111
- public function sendRequest (RequestInterface $ request )
112
+ public function sendRequest (RequestInterface $ request ): ResponseInterface
112
113
{
113
114
$ responseBuilder = $ this ->createResponseBuilder ();
114
115
$ options = $ this ->createCurlOptions ($ request , $ responseBuilder );
You can’t perform that action at this time.
0 commit comments