1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-30 18:00:17 +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->setData($record);
/** @phpstan-ignore function.impossibleType */
if (method_exists($document, 'setType')) {
$document->setType($this->type);
}