overblog / GraphQLBundle

This bundle provides tools to build a complete GraphQL API server in your Symfony App.
MIT License
783 stars 221 forks source link

Incompatibility with webonyx/graphql-php version 15.0 #1085

Closed alleknalle closed 1 year ago

alleknalle commented 1 year ago
Q A
Bug report? yes
Version/Branch 0.15.1

webonyx/graphql-php released version 15.0 last friday and removed some Utils functions. Since there is no version constraint for webonyx/graphql-php, when using overblog/graphql-bundle, version 15.0 is used without the Utils, while overblog/graphql-bundle depends on the Utils function. This is why we're getting the following error:

Uncaught PHP Exception Error: "Call to undefined method GraphQL\Utils\Utils::invariant()" at /var/www/vendor/overblog/graphql-bundle/src/Definition/Type/CustomScalarType.php line 72
stevro commented 1 year ago

This bug is happening for all v14. and v15. of overblog/GraphQLBundle as in composer.json we have "webonyx/graphql-php": ">=14.5" and it should be "webonyx/graphql-php": "^14.5"

From webonyx/graphql-php v15 changelog:

Remove Utils::find(), Utils::every() and Utils::invariant()

https://github.com/webonyx/graphql-php/blob/v15.0.0/CHANGELOG.md

mcg-web commented 1 year ago

Fixed in v0.15.2.