File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 16
16
},
17
17
"require-dev" : {
18
18
"friendsofphp/php-cs-fixer" : " ^2.2" ,
19
- "php-http/client-integration-tests" : " ^2.0 " ,
19
+ "php-http/client-integration-tests" : " dev-master " ,
20
20
"php-http/message" : " ^1.0" ,
21
21
"php-http/client-common" : " ^2.0"
22
22
},
Original file line number Diff line number Diff line change 4
4
5
5
use Http \Client \Tests \HttpFeatureTest ;
6
6
use Http \Client \Socket \Client as SocketHttpClient ;
7
+ use Psr \Http \Client \ClientInterface ;
7
8
8
9
class SocketClientFeatureTest extends HttpFeatureTest
9
10
{
10
- protected function createClient ()
11
+ protected function createClient (): ClientInterface
11
12
{
12
13
return new SocketHttpClient ();
13
14
}
Original file line number Diff line number Diff line change 4
4
5
5
use Http \Client \Tests \HttpClientTest ;
6
6
use Http \Client \Socket \Client as SocketHttpClient ;
7
+ use Psr \Http \Client \ClientInterface ;
7
8
8
9
class SocketHttpAdapterTest extends HttpClientTest
9
10
{
10
11
/**
11
12
* {@inheritdoc}
12
13
*/
13
- protected function createHttpAdapter ()
14
+ protected function createHttpAdapter (): ClientInterface
14
15
{
15
16
return new SocketHttpClient ();
16
17
}
Original file line number Diff line number Diff line change 1
- 32
1
+ 34
You can’t perform that action at this time.
0 commit comments