mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Expand is_array check in defaultTypeResolver to allow for ArrayAccess… (#361)
Expand is_array check in defaultTypeResolver to allow for ArrayAccess objects as well
This commit is contained in:
parent
1417a43697
commit
7ff3e9399f
@ -1181,7 +1181,7 @@ class Executor
|
||||
{
|
||||
// First, look for `__typename`.
|
||||
if ($value !== null &&
|
||||
is_array($value) &&
|
||||
(is_array($value) || $value instanceof ArrayAccess) &&
|
||||
isset($value['__typename']) &&
|
||||
is_string($value['__typename'])
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user