Skip to content

Commit

Permalink
Handle null for fieldContext within resolvePotentialPartialArray
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Mar 12, 2024
1 parent 633963d commit e50784e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Resolvers/TransformedDataResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,12 @@ protected function transformIterableItems(

protected function resolvePotentialPartialArray(
array $value,
TransformationContext $fieldContext,
?TransformationContext $fieldContext,
): array {
if($fieldContext === null) {
return $value;
}

if ($fieldContext->exceptPartials && $fieldContext->exceptPartials->count() > 0) {
$partials = [];

Expand Down

0 comments on commit e50784e

Please sign in to comment.