Check on ListOfType is on ArrayAccess instead of ArrayObject

This commit is contained in:
David Mongeau-Petitpas 2015-08-09 14:25:01 -04:00
parent b2b08f2a07
commit afe28da475

View File

@ -285,7 +285,7 @@ class Executor
} }
/** /**
* Implements the logic to compute the key of a given fields entry * Implements the logic to compute the key of a given field<EFBFBD>s entry
*/ */
private static function getFieldEntryKey(Field $node) private static function getFieldEntryKey(Field $node)
{ {
@ -430,7 +430,7 @@ class Executor
if ($fieldType instanceof ListOfType) { if ($fieldType instanceof ListOfType) {
$itemType = $fieldType->getWrappedType(); $itemType = $fieldType->getWrappedType();
Utils::invariant( Utils::invariant(
is_array($result) || $result instanceof \ArrayObject, is_array($result) || $result instanceof \ArrayAccess,
'User Error: expected iterable, but did not find one.' 'User Error: expected iterable, but did not find one.'
); );