File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1212 ->setRiskyAllowed (true )
1313 ->setRules (array (
1414 '@PSR2 ' => true ,
15+ 'no_unused_imports ' => true ,
1516 ))
1617 ->setFinder ($ finder )
1718;
Original file line number Diff line number Diff line change 99
1010namespace PrivatePackagist \ApiClient \Api ;
1111
12- use PrivatePackagist \ApiClient \Exception \InvalidArgumentException ;
13-
1412/**
1513 * @deprecated Use the Subrepositories API instead
1614 */
Original file line number Diff line number Diff line change 1212use Http \Client \Common \HttpMethodsClient ;
1313use Http \Client \Common \Plugin ;
1414use Http \Client \Common \PluginClient ;
15- use Http \Client \HttpClient ;
1615use Http \Discovery \HttpClientDiscovery ;
1716use Http \Discovery \MessageFactoryDiscovery ;
1817use Http \Message \RequestFactory ;
18+ use Psr \Http \Client \ClientInterface ;
1919
2020class HttpPluginClientBuilder
2121{
22- /** @var HttpClient */
22+ /** @var ClientInterface */
2323 private $ httpClient ;
2424 /** @var HttpMethodsClient|null */
2525 private $ pluginClient ;
@@ -28,7 +28,7 @@ class HttpPluginClientBuilder
2828 /** @var Plugin[] */
2929 private $ plugins = [];
3030
31- public function __construct (HttpClient $ httpClient = null , RequestFactory $ requestFactory = null )
31+ public function __construct (ClientInterface $ httpClient = null , RequestFactory $ requestFactory = null )
3232 {
3333 $ this ->httpClient = $ httpClient ?: HttpClientDiscovery::find ();
3434 $ this ->requestFactory = $ requestFactory ?: MessageFactoryDiscovery::find ();
You can’t perform that action at this time.
0 commit comments