File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 44
44
php-version : " 8.2"
45
45
symfony-deprecations-helper : " weak"
46
46
47
- # Test with httplug 1.x clients
48
- - dependencies : " php-http/buzz-adapter:^1.0 php-http/guzzle6-adapter:^1.1.1 php-http/react-adapter:^0.2.1"
49
- php-version : " 7.3"
50
- symfony-deprecations-helper : " weak"
51
47
# Test with httplug 2.x clients
52
48
- dependencies : " php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev php-http/socket-client:^2.0"
53
49
php-version : " 7.3"
Original file line number Diff line number Diff line change 29
29
"php-http/client-common" : " ^1.9 || ^2.0" ,
30
30
"php-http/client-implementation" : " ^1.0" ,
31
31
"php-http/discovery" : " ^1.14" ,
32
- "php-http/httplug" : " ^1.0 || ^ 2.0" ,
32
+ "php-http/httplug" : " ^2.0" ,
33
33
"php-http/logger-plugin" : " ^1.1" ,
34
34
"php-http/message" : " ^1.4" ,
35
35
"php-http/message-factory" : " ^1.0.2" ,
Original file line number Diff line number Diff line change 4
4
5
5
namespace Http \HttplugBundle \ClientFactory ;
6
6
7
- use Http \Client \HttpClient ;
8
7
use Http \Mock \Client ;
8
+ use Psr \Http \Client \ClientInterface ;
9
9
10
10
/**
11
11
* @author Gary PEGEOT <[email protected] >
12
12
*/
13
13
final class MockFactory implements ClientFactory
14
14
{
15
15
/**
16
- * @var HttpClient
16
+ * @var ClientInterface
17
17
*/
18
18
private $ client ;
19
19
@@ -22,7 +22,7 @@ final class MockFactory implements ClientFactory
22
22
*
23
23
* Note that this can be any client, not only a mock client.
24
24
*/
25
- public function setClient (HttpClient $ client )
25
+ public function setClient (ClientInterface $ client )
26
26
{
27
27
$ this ->client = $ client ;
28
28
}
You can’t perform that action at this time.
0 commit comments