Skip to content

BC break with GraphQL\Server\ServerConfig::setValidationRules signature in 14.11.7 #1221

@andrew-demb

Description

@andrew-demb

Signature of GraphQL\Server\ServerConfig::setValidationRules (

public function setValidationRules($validationRules): self
) has been changed in v14.11.7.

Signature in v14.11.6 -

public function setValidationRules($validationRules)
) were not declared explicit return type.

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#L27

Proposed solution: revert changing method signature and apply this change only with next major version bump with changelog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions