Skip to content

Commit

Permalink
Merge pull request #693 from faustbrian/patch-1
Browse files Browse the repository at this point in the history
Handle `null` for `fieldContext` within `resolvePotentialPartialArray`
  • Loading branch information
rubenvanassche authored Mar 12, 2024
2 parents 9523926 + e50784e commit 01c25c3
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 01c25c3

Please sign in to comment.