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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user