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

count(): Argument #1 ($value) must be of type Countable|array, null given #92

Open
wkolcz-UMHS opened this issue Mar 14, 2022 · 0 comments

Comments

@wkolcz-UMHS
Copy link

I am attempting to use the patreon api and I am stumbling at the first step. I stored my access token in my database and I tried to use it to access information. Using the docs, I did something simple like:

         try{
            $api_client = new API($access_token);
            $current_member = $api_client->fetch_user();
            dd($current_member);
        }catch(\Exception $e){
            dd($e->getMessage());
        }

But I am immediately hit with the error code 'count(): Argument #1 ($value) must be of type Countable|array, null given' and no other information.

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