Skip to content

Commit 04b2e40

Browse files
committed
Merge pull request #1 from Folkloreatelier/master
Check ListOfType result is an instance of Traversable instead of ArrayObject
2 parents b2b08f2 + b3932c8 commit 04b2e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Executor/Executor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private static function doesFragmentConditionMatch(ExecutionContext $exeContext,
285285
}
286286

287287
/**
288-
* Implements the logic to compute the key of a given field’s entry
288+
* Implements the logic to compute the key of a given fields entry
289289
*/
290290
private static function getFieldEntryKey(Field $node)
291291
{
@@ -430,7 +430,7 @@ private static function completeField(ExecutionContext $exeContext, Type $fieldT
430430
if ($fieldType instanceof ListOfType) {
431431
$itemType = $fieldType->getWrappedType();
432432
Utils::invariant(
433-
is_array($result) || $result instanceof \ArrayObject,
433+
is_array($result) || $result instanceof \Traversable,
434434
'User Error: expected iterable, but did not find one.'
435435
);
436436

0 commit comments

Comments
 (0)