Skip to content

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

@wkolcz-UMHS

Description

@wkolcz-UMHS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions