GraphQL\Validator\Rules\VariablesInAllowedPosition::effectiveType PHP Method

effectiveType() private method

If a variable definition has a default value, it's effectively non-null.
private effectiveType ( $varType, $varDef )
    private function effectiveType($varType, $varDef)
    {
        return !$varDef->defaultValue || $varType instanceof NonNull ? $varType : new NonNull($varType);
    }