-
-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC break with GraphQL\Server\ServerConfig::setValidationRules signature in 14.11.7 #1221
Comments
This version breaks basically every class that extends from this library in some way. Notable Magento 2 that extends the types and now throws an error because the $name attributes has suddenly been typed as a string. |
I think the problem is that the release has been made from the wrong branch, from master, but should have been from the 14.x branch. Because that type change was done last year… but we had a release in April, not containing it. Is that possible? |
Yup, that is it - my bad. Will fix ASAP. |
Other problems we run into:
|
Best field test ever 😅 Basically what everyone got was/is 15.x . Not sure if it's meant to be, but https://github.com/webonyx/graphql-php/blob/master/UPGRADE.md#v14xx--v15xx does not list those things; it only has 2 items. |
Possibly related: rebing/graphql-laravel#944 |
Fixes #11979 Guards against webonyx/graphql-php#1221
Sorry for the trouble everybody, I just fixed the release to point to a tag on the correct branch - see https://github.com/webonyx/graphql-php/releases/tag/v14.11.7. You might need to remove your |
@spawnia can you release a new patch release to avoid manual work with refetching same version with different hash with composer? |
The changelog should list all breaking changes, not all of them are properly documented. |
Agree it would be nice if it were |
Signature of
GraphQL\Server\ServerConfig::setValidationRules
(graphql-php/src/Server/ServerConfig.php
Line 213 in 688c6b7
v14.11.7
.Signature in
v14.11.6
-graphql-php/src/Server/ServerConfig.php
Line 168 in 6070542
As of this method marked as
@api
there were expectations about strong BC promise.For now this update breaks
thecodingmachine/graphqlite-bundle
https://github.com/thecodingmachine/graphqlite-bundle/blob/3ae908cc814dfa7283d869789db5852a200a46aa/Server/ServerConfig.php#L27Proposed solution: revert changing method signature and apply this change only with next major version bump with changelog
The text was updated successfully, but these errors were encountered: