Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refreshAccessToken() wrong return type #305

Open
victorlapshev opened this issue Nov 9, 2022 · 0 comments
Open

refreshAccessToken() wrong return type #305

victorlapshev opened this issue Nov 9, 2022 · 0 comments

Comments

@victorlapshev
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant