diff --git a/src/ClientBuilder.php b/src/ClientBuilder.php index ea78668..adf6086 100644 --- a/src/ClientBuilder.php +++ b/src/ClientBuilder.php @@ -14,7 +14,7 @@ class ClientBuilder implements ClientBuilderInterface */ protected array $cache; - public function default(): ClientInterface + public function default(): Client { $name = config('elastic.client.default'); @@ -25,7 +25,7 @@ public function default(): ClientInterface return $this->connection($name); } - public function connection(string $name): ClientInterface + public function connection(string $name): Client { if (isset($this->cache[$name])) { return $this->cache[$name]; diff --git a/src/ClientBuilderInterface.php b/src/ClientBuilderInterface.php index b0d487a..029118a 100644 --- a/src/ClientBuilderInterface.php +++ b/src/ClientBuilderInterface.php @@ -2,11 +2,11 @@ namespace Elastic\Client; -use Elastic\Elasticsearch\ClientInterface; +use Elastic\Elasticsearch\Client; interface ClientBuilderInterface { - public function default(): ClientInterface; + public function default(): Client; - public function connection(string $name): ClientInterface; + public function connection(string $name): Client; }