Skip to content

refreshAccessToken() wrong return type #305

Description

@victorlapshev

It seems like method refreshAccessToken of Infusionsoft\Infusionsoft have incorrect return type declared in doc block.

    /**
     * @return array
     * @throws InfusionsoftException
     */
    public function refreshAccessToken()

But it returns Token object.

        return $this->getToken();

...

     /**
     * @return Token
     */
    public function getToken()
    {
        return $this->token;
    }

This could be a problem for code static analyse tools, like psalm or phpstan.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions