From a41bbcdc1105603b6d73a7d9a43a3788f8e0fb7d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 10 May 2022 16:24:36 +0200 Subject: [PATCH] Fix syntax error --- DependencyInjection/MonologExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/MonologExtension.php b/DependencyInjection/MonologExtension.php index c2b3b5b8..7d766714 100644 --- a/DependencyInjection/MonologExtension.php +++ b/DependencyInjection/MonologExtension.php @@ -316,7 +316,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler if ($handler['type'] === 'elastic_search') { // v8 has a new Elastic\ prefix $client = new Definition(class_exists('Elastic\Elasticsearch\Client') ? 'Elastic\Elasticsearch\Client' : 'Elasticsearch\Client'); - $factory = class_exists('Elastic\Elasticsearch\ClientBuilder') ? 'Elastic\Elasticsearch\ClientBuilder' : 'Elasticsearch\ClientBuilder'); + $factory = class_exists('Elastic\Elasticsearch\ClientBuilder') ? 'Elastic\Elasticsearch\ClientBuilder' : 'Elasticsearch\ClientBuilder'; $client->setFactory([$factory, 'fromConfig']); $clientArguments = [ 'host' => $handler['elasticsearch']['host'],