Skip to content

Commit

Permalink
Merge pull request #52 from ibexa/IBX-5515_fix_empty_fieldtypes_resol…
Browse files Browse the repository at this point in the history
…ving

IBX-5515: Corrected return type for resolveItemFieldValue function
  • Loading branch information
Konrad Oboza authored Apr 20, 2023
2 parents f02ad90 + 7a3fa62 commit 7cd57d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Resolver/ItemResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function resolveItem($args): Item
return $item;
}

public function resolveItemFieldValue(Item $item, $fieldDefinitionIdentifier, $args = null): Field
public function resolveItemFieldValue(Item $item, $fieldDefinitionIdentifier, $args = null): ?Field
{
return Field::fromField($item->getContent()->getField($fieldDefinitionIdentifier, $args['language'] ?? null));
}
Expand Down

0 comments on commit 7cd57d0

Please sign in to comment.