1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

Remove deprecated setType method call in ElasticaFormatter (#1955)

This commit is contained in:
Rajmund
2025-03-20 09:52:05 +01:00
committed by GitHub
parent 467e764fb6
commit 62946513d4

View File

@@ -77,10 +77,6 @@ class ElasticaFormatter extends NormalizerFormatter
{ {
$document = new Document(); $document = new Document();
$document->setData($record); $document->setData($record);
/** @phpstan-ignore function.impossibleType */
if (method_exists($document, 'setType')) {
$document->setType($this->type);
}
$document->setIndex($this->index); $document->setIndex($this->index);
return $document; return $document;