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

show error on $connections #47

Open
AgungPutra0708 opened this issue Nov 24, 2023 · 0 comments
Open

show error on $connections #47

AgungPutra0708 opened this issue Nov 24, 2023 · 0 comments

Comments

@AgungPutra0708
Copy link

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

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