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