Skip to content

Commit

Permalink
return ClientInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
Surfoo committed Jul 11, 2023
1 parent 12d9c26 commit c305830
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Geocaching;

use Http\Client\Common\HttpMethodsClient;
use Http\Client\Common\HttpMethodsClientInterface;
use Http\Client\Common\Plugin;
use Http\Client\Common\PluginClientFactory;
use Http\Discovery\Psr18ClientDiscovery;
Expand Down Expand Up @@ -39,7 +38,7 @@ public function addPlugin(Plugin $plugin): void
$this->plugins[] = $plugin;
}

public function getHttpClient(): HttpMethodsClientInterface
public function getHttpClient(): ClientInterface
{
$pluginClient = (new PluginClientFactory())->createClient($this->httpClient, $this->plugins);

Expand Down

0 comments on commit c305830

Please sign in to comment.