Skip to content

Commit 6c0651d

Browse files
committed
Revert "Use ClientInterface instead of Client"
1 parent cde3e60 commit 6c0651d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/ClientBuilder.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Elastic\Elasticsearch\Client;
66
use Elastic\Elasticsearch\ClientBuilder as BaseClientBuilder;
7-
use Elastic\Elasticsearch\ClientInterface;
87
use ErrorException;
98

109
class ClientBuilder implements ClientBuilderInterface
@@ -14,7 +13,7 @@ class ClientBuilder implements ClientBuilderInterface
1413
*/
1514
protected array $cache;
1615

17-
public function default(): ClientInterface
16+
public function default(): Client
1817
{
1918
$name = config('elastic.client.default');
2019

@@ -25,7 +24,7 @@ public function default(): ClientInterface
2524
return $this->connection($name);
2625
}
2726

28-
public function connection(string $name): ClientInterface
27+
public function connection(string $name): Client
2928
{
3029
if (isset($this->cache[$name])) {
3130
return $this->cache[$name];

src/ClientBuilderInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Elastic\Client;
44

5-
use Elastic\Elasticsearch\ClientInterface;
5+
use Elastic\Elasticsearch\Client;
66

77
interface ClientBuilderInterface
88
{
9-
public function default(): ClientInterface;
9+
public function default(): Client;
1010

11-
public function connection(string $name): ClientInterface;
11+
public function connection(string $name): Client;
1212
}

0 commit comments

Comments
 (0)