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