Skip to content

show error on $connections #47

@AgungPutra0708

Description

@AgungPutra0708

foreach ($people->all() as $contact) { // echo $contact->resourceName . ' - '; if ($contact->names) { echo $contact->names[0]->displayName . "\n"; $contact->delete(); } // echo PHP_EOL; }

when $people is null thats show error like this
Warning: Undefined property: stdClass::$connections in C:\xampp\htdocs\phpto\vendor\rapidwebltd\php-google-people-api\src\GooglePeople.php on line 70
PHP Warning: foreach() argument must be of type array|object, null given in C:\xampp\htdocs\phpto\vendor\rapidwebltd\php-google-people-api\src\GooglePeople.php on line 70

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions