diff --git a/Classes/IndexQueue/AbstractIndexer.php b/Classes/IndexQueue/AbstractIndexer.php index 768ca740eb..9ffa881be7 100644 --- a/Classes/IndexQueue/AbstractIndexer.php +++ b/Classes/IndexQueue/AbstractIndexer.php @@ -119,7 +119,7 @@ protected function resolveFieldValue( string $solrFieldName, array $data, TypoScriptFrontendController $tsfe - ): array|float|int|string|null { + ): mixed { if (isset($indexingConfiguration[$solrFieldName . '.'])) { // configuration found => need to resolve a cObj @@ -276,7 +276,7 @@ protected static function isSerializedResultFromRegisteredHook(array $indexingCo * @param string $fieldType The dynamic field's type * @return int|float|string|null Returns the value in the correct format for the field type */ - protected function ensureFieldValueType(mixed $value, string $fieldType): int|float|string|null + protected function ensureFieldValueType(mixed $value, string $fieldType): mixed { switch ($fieldType) { case 'int': diff --git a/Classes/IndexQueue/FrontendHelper/PageFieldMappingIndexer.php b/Classes/IndexQueue/FrontendHelper/PageFieldMappingIndexer.php index f34366e70b..4b3ef7c647 100644 --- a/Classes/IndexQueue/FrontendHelper/PageFieldMappingIndexer.php +++ b/Classes/IndexQueue/FrontendHelper/PageFieldMappingIndexer.php @@ -102,7 +102,7 @@ protected function getMappedFields(Document $pageDocument, array $pageRecord): a * @param string $solrFieldName The Solr field name to resolve the value from the item's record * @return string|array The resolved value to be indexed */ - protected function resolveFieldValue(string $solrFieldName, Document $pageDocument, array $pageRecord): array|string + protected function resolveFieldValue(string $solrFieldName, Document $pageDocument, array $pageRecord): mixed { $pageIndexingConfiguration = $this->configuration->getIndexQueueFieldsConfigurationByConfigurationName($this->pageIndexingConfigurationName);