From afe28da475af1c44acf90e60dd4c4d43abac13fa Mon Sep 17 00:00:00 2001 From: David Mongeau-Petitpas Date: Sun, 9 Aug 2015 14:25:01 -0400 Subject: [PATCH] Check on ListOfType is on ArrayAccess instead of ArrayObject --- src/Executor/Executor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 377435a..c68f0e2 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -285,7 +285,7 @@ class Executor } /** - * Implements the logic to compute the key of a given field’s entry + * Implements the logic to compute the key of a given field�s entry */ private static function getFieldEntryKey(Field $node) { @@ -430,7 +430,7 @@ class Executor if ($fieldType instanceof ListOfType) { $itemType = $fieldType->getWrappedType(); Utils::invariant( - is_array($result) || $result instanceof \ArrayObject, + is_array($result) || $result instanceof \ArrayAccess, 'User Error: expected iterable, but did not find one.' );