Skip to content

v6.1.0

Compare
Choose a tag to compare
@oojacoboo oojacoboo released this 29 Oct 03:32
· 93 commits to master since this release
b68e96b

A shoutout to @bladl for his work on this release, improving the code for better typing and PHP 8.0 syntax updates!

Breaking Change:

#518 PSR-11 support now requires version 2
#508 Due to some of the code improvements, additional typing has been added to some interfaces/classes. For instance, RootTypeMapperInterface::toGraphQLOutputType and RootTypeMapperInterface::toGraphQLInputType now have the following signatures:

    /**
     * @param (OutputType&GraphQLType)|null $subType
     *
     * @return OutputType&GraphQLType
     */
    public function toGraphQLOutputType(
        Type $type, 
        OutputType|null $subType, 
        ReflectionMethod|ReflectionProperty $reflector, 
        DocBlock $docBlockObj
    ): OutputType;

    /**
     * @param (InputType&GraphQLType)|null $subType
     *
     * @return InputType&GraphQLType
     */
    public function toGraphQLInputType(
        Type $type, 
        InputType|null $subType, 
        string $argumentName, 
        ReflectionMethod|ReflectionProperty $reflector, 
        DocBlock $docBlockObj
    ): InputType;

Improvements:

#510
#508