Skip to content

Commit

Permalink
Revert "Use ClientInterface instead of Client"
Browse files Browse the repository at this point in the history
  • Loading branch information
babenkoivan committed May 20, 2024
1 parent cde3e60 commit d5865b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClientBuilder implements ClientBuilderInterface
*/
protected array $cache;

public function default(): ClientInterface
public function default(): Client
{
$name = config('elastic.client.default');

Expand All @@ -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];
Expand Down
6 changes: 3 additions & 3 deletions src/ClientBuilderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d5865b2

Please sign in to comment.