1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-03 19:57:41 +02:00

Fix issue in elasticaformatter

This commit is contained in:
Jordi Boggiano
2025-03-15 14:17:09 +01:00
parent 3606a19b6e
commit 95092b0107

View File

@@ -77,6 +77,7 @@ 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')) { if (method_exists($document, 'setType')) {
$document->setType($this->type); $document->setType($this->type);
} }