src/Utils/BreakingChangesFinder.php
private static function typeKindName(Type $type)
    {
        if ($type instanceof ScalarType) {
            return 'a Scalar type';
        }

        if ($type instanceof ObjectType) {
            return 'an Object type';
        }

        if ($type instanceof InterfaceType) {
            return 'an Interface type';
        }

        if ($type instanceof UnionType) {
            return 'a Union type';
        }

        if ($type instanceof EnumType) {
            return 'an Enum type';
        }

        if ($type instanceof InputObjectType) {
            return 'an Input type';
        }

        throw new TypeError('unknown type ' . $type->name);
    }
private static function typeKindName(Type $type)
    {
        if ($type instanceof ScalarType) {
            return 'a Scalar type';
        }

        if ($type instanceof ObjectType) {
            return 'an Object type';
        }

        if ($type instanceof InterfaceType) {
            return 'an Interface type';
        }

        if ($type instanceof UnionType) {
            return 'a Union type';
        }

        if ($type instanceof EnumType) {
            return 'an Enum type';
        }

        if ($type instanceof InputObjectType) {
            return 'an Input type';
        }

        throw new TypeError('unknown type ' . $type->name);
    }
private static function typeKindName ( Type $ type ) { if ( $ type instanceof ScalarType ) { return 'a Scalar type' ; } if ( $ type instanceof ObjectType ) { return 'an Object type' ; } if ( $ type instanceof InterfaceType ) { return 'an Interface type' ; } if ( $ type instanceof UnionType ) { return 'a Union type' ; } if ( $ type instanceof EnumType ) { return 'an Enum type' ; } if ( $ type instanceof InputObjectType ) { return 'an Input type' ; } throw new TypeError ( 'unknown type ' . $ type -> name ) ; }
@return string

@throws TypeError
@return string