Skip to content

Commit 8e19f48

Browse files
authored
Using static instead of self
tinstantiate is protected so you will be able to override it (and use it)
1 parent 6c9c0a7 commit 8e19f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/ClientBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getRegisteredNamespacesBuilders(): array
180180
*/
181181
public static function fromConfig(array $config, bool $quiet = false): Client
182182
{
183-
$builder = new self;
183+
$builder = new static;
184184
foreach ($config as $key => $value) {
185185
$method = "set$key";
186186
if (method_exists($builder, $method)) {

0 commit comments

Comments
 (0)