Closed cboulanger closed 4 years ago
Hi,
in https://github.com/tsingsun/yii2-graphql/blob/743ea7001959aac207016aa75f139ea23a0ce772/src/TypeResolution.php#L224-L227 in lines 224 and 227 you use $field['name'] even though $fields is an object. This will throw Cannot use object ... as array - or did I miss something?
$field['name']
$fields
Cannot use object ... as array
Ok, sorry, I guess it must return an object implementing the ArrayAccess-Interface..
ArrayAccess
Hi,
in https://github.com/tsingsun/yii2-graphql/blob/743ea7001959aac207016aa75f139ea23a0ce772/src/TypeResolution.php#L224-L227 in lines 224 and 227 you use
$field['name']
even though$fields
is an object. This will throwCannot use object ... as array
- or did I miss something?