From 62946513d4232cecdced9a67533e1daff3748e13 Mon Sep 17 00:00:00 2001 From: Rajmund <115630432+rajmundtoth0@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:52:05 +0100 Subject: [PATCH] Remove deprecated setType method call in ElasticaFormatter (#1955) --- src/Monolog/Formatter/ElasticaFormatter.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Monolog/Formatter/ElasticaFormatter.php b/src/Monolog/Formatter/ElasticaFormatter.php index 759c97d1..a0fa4a9e 100644 --- a/src/Monolog/Formatter/ElasticaFormatter.php +++ b/src/Monolog/Formatter/ElasticaFormatter.php @@ -77,10 +77,6 @@ class ElasticaFormatter extends NormalizerFormatter { $document = new Document(); $document->setData($record); - /** @phpstan-ignore function.impossibleType */ - if (method_exists($document, 'setType')) { - $document->setType($this->type); - } $document->setIndex($this->index); return $document;