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

Update Client #3

Closed
wants to merge 1 commit into from
Closed

Update Client #3

wants to merge 1 commit into from

Conversation

adilhanomeronder
Copy link

[$access_token, $refresh_token] = $client->requestAccessToken(
    $redirect_uri,
    $code,
    $verifier
);

[$access_token, $refresh_token] = $client->refreshAccessToken($refresh_token);

 Hello, if I'm not mistaken, if we want to use it as above, we need to fix it this way, otherwise it gives the following error

 Notice: Undefined offset: 0 in and 1 in

    [$access_token, $refresh_token] = $client->requestAccessToken(
        $redirect_uri,
        $code,
        $verifier
    );

    [$access_token, $refresh_token] = $client->refreshAccessToken($refresh_token);

     Hello, if I'm not mistaken, if we want to use it as above, we need to fix it this way, otherwise it gives the following error

     Notice: Undefined offset: 0 in and 1 in
@rhysnhall
Copy link
Owner

This is true prior to PHP 7.1.
PHP 7.1 onwards we can use arrays with keys for a list.
I'll update the requirements to specify that PHP 7.1 is the minimum supported version.

@rhysnhall rhysnhall closed this Aug 18, 2021
@ELY3M ELY3M mentioned this pull request Nov 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants