From b5456ed8643f84294107e658e025d3789b691d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Wed, 29 May 2024 08:14:49 +0200 Subject: [PATCH] NGSTACK-836: use getters instead of magic get and fix CS --- .../FullTextFieldResolver/NativeFulltextFieldResolver.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php b/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php index a904abb2..39e1e1af 100644 --- a/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php +++ b/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php @@ -52,7 +52,7 @@ public function resolveFields(SPIContent $content, string $languageCode): array $indexFields = $fieldType->getIndexData($field, $fieldDefinition); foreach ($indexFields as $indexField) { - if ($indexField->value === null) { + if ($indexField->getValue() === null) { continue; } @@ -62,12 +62,13 @@ public function resolveFields(SPIContent $content, string $languageCode): array $fields[] = new Field( 'meta_content__text', - (string) $indexField->value, + (string) $indexField->getValue(), new TextField(), ); } } } + return $fields; } }