File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 12
12
->setRiskyAllowed (true )
13
13
->setRules (array (
14
14
'@PSR2 ' => true ,
15
+ 'no_unused_imports ' => true ,
15
16
))
16
17
->setFinder ($ finder )
17
18
;
Original file line number Diff line number Diff line change 9
9
10
10
namespace PrivatePackagist \ApiClient \Api ;
11
11
12
- use PrivatePackagist \ApiClient \Exception \InvalidArgumentException ;
13
-
14
12
/**
15
13
* @deprecated Use the Subrepositories API instead
16
14
*/
Original file line number Diff line number Diff line change 12
12
use Http \Client \Common \HttpMethodsClient ;
13
13
use Http \Client \Common \Plugin ;
14
14
use Http \Client \Common \PluginClient ;
15
- use Http \Client \HttpClient ;
16
15
use Http \Discovery \HttpClientDiscovery ;
17
16
use Http \Discovery \MessageFactoryDiscovery ;
18
17
use Http \Message \RequestFactory ;
18
+ use Psr \Http \Client \ClientInterface ;
19
19
20
20
class HttpPluginClientBuilder
21
21
{
22
- /** @var HttpClient */
22
+ /** @var ClientInterface */
23
23
private $ httpClient ;
24
24
/** @var HttpMethodsClient|null */
25
25
private $ pluginClient ;
@@ -28,7 +28,7 @@ class HttpPluginClientBuilder
28
28
/** @var Plugin[] */
29
29
private $ plugins = [];
30
30
31
- public function __construct (HttpClient $ httpClient = null , RequestFactory $ requestFactory = null )
31
+ public function __construct (ClientInterface $ httpClient = null , RequestFactory $ requestFactory = null )
32
32
{
33
33
$ this ->httpClient = $ httpClient ?: HttpClientDiscovery::find ();
34
34
$ this ->requestFactory = $ requestFactory ?: MessageFactoryDiscovery::find ();
You can’t perform that action at this time.
0 commit comments