tsingsun / yii2-graphql

facebook graphql server side for yii2 php framework
98 stars 26 forks source link

Object array access? #19

Closed cboulanger closed 4 years ago

cboulanger commented 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?

cboulanger commented 4 years ago

Ok, sorry, I guess it must return an object implementing the ArrayAccess-Interface..