patreon-php icon indicating copy to clipboard operation
patreon-php copied to clipboard

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

Open wkolcz-UMHS opened this issue 2 years ago • 0 comments

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.

wkolcz-UMHS avatar Mar 14 '22 14:03 wkolcz-UMHS