Skip to content

Wrong return type #71

Description

@szabrzyski
Message: Vault\AuthenticationStrategies\AbstractPathAuthenticationStrategy::authenticate(): Return value must be of type Vault\ResponseModels\Auth, null returned
Location: vendor/csharpru/vault-php/src/AuthenticationStrategies/AbstractPathAuthenticationStrategy.php, line 61

This function defines Auth as return type, but getAuth can return a null

    public function authenticate(): Auth
    {
        // (...)
        return $response->getAuth();
    }
    /**
     * @return Auth|null
     */
    public function getAuth(): ?Auth
    {
        return $this->auth;
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions