Skip to content

Commit

Permalink
[BUGFIX] Less strict return types on resolving values
Browse files Browse the repository at this point in the history
Resolves #3758
  • Loading branch information
RazielleS authored and dkd-kaehm committed Oct 10, 2023
1 parent c20f473 commit e2b725c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/IndexQueue/AbstractIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e2b725c

Please sign in to comment.