Skip to content

Commit b673dcf

Browse files
authored
Merge pull request #1036 from snoob/patch-1
Make ClientBuilder override possible
2 parents f430383 + 8e19f48 commit b673dcf

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)