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

Call to a member function flatten() on null #282

Open
rajvanshipradeep15 opened this issue Sep 1, 2024 · 0 comments
Open

Call to a member function flatten() on null #282

rajvanshipradeep15 opened this issue Sep 1, 2024 · 0 comments

Comments

@rajvanshipradeep15
Copy link

PHP version 8.2.23

$messages = LaravelGmail::message()->take(2)->all( $pageToken = null );

While trying to read messages

foreach ($messages as $message) { $body = $message->getHtmlBody(); $subject = $message->getSubject(); }

when we call this function getHtmlBody it throws Error

Call to a member function flatten() on null

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