Skip to content

Commit

Permalink
[Bug]: thumbnail resolutions multiple types list doesn't work anymore (
Browse files Browse the repository at this point in the history
…#572)

* [Bug]: thumbnail resolutions multiple types list doesn't work anymore
Check for value kind and use the correct property

* Apply php-cs-fixer changes

Co-authored-by: mcop1 <[email protected]>
  • Loading branch information
mcop1 and mcop1 authored Jul 27, 2022
1 parent 0af982b commit 8ff7be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/FieldHelper/AbstractFieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getArguments(FieldNode $ast)
for ($i = 0; $i < $count; $i++) {
/** @var ArgumentNode $argumentNode */
$argumentNode = $nodeList[$i];
$value = $argumentNode->value->value;
$value = $argumentNode->value->kind === 'ListValue' ? $argumentNode->value->values : $argumentNode->value->value;
$result[$argumentNode->name->value] = $value;
}

Expand Down

0 comments on commit 8ff7be0

Please sign in to comment.