From b3932c8fbedd6e576f01cf8e8a6f916c929d3452 Mon Sep 17 00:00:00 2001 From: David Mongeau-Petitpas Date: Sun, 9 Aug 2015 19:00:05 -0400 Subject: [PATCH] Updated listOfType validation to Traversable --- src/Executor/Executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 8f0b300..bb7459b 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -430,7 +430,7 @@ class Executor if ($fieldType instanceof ListOfType) { $itemType = $fieldType->getWrappedType(); Utils::invariant( - is_array($result) || $result instanceof \ArrayAccess, + is_array($result) || $result instanceof \Traversable, 'User Error: expected iterable, but did not find one.' );