Skip to content

Commit

Permalink
NGSTACK-836: use getters instead of magic get and fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed May 29, 2024
1 parent f05386f commit b5456ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}

0 comments on commit b5456ed

Please sign in to comment.