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