youshido-php / GraphQLBundle

Pure PHP implementation of GraphQL Server – Symfony Bundle
MIT License
284 stars 44 forks source link

Fix issue when resolving GlobalId field #74

Closed symm closed 4 years ago

symm commented 6 years ago

I ran into a regression when upgrading from v1.3.4 to v1.4

When the field passed to doResolve() is a instance of Youshido\GraphQL\Relay\Field\GlobalIdField the following error occurs

[2018-03-08 09:58:51] app.WARNING: strpos() expects parameter 1 to be string, object given {"exception":"[object] (PHPUnit\Framework\Error\Warning(code: 2): strpos() expects parameter 1 to be string, object given at vendor/youshido/graphql-bundle/Execution/Processor.php:148)"} []