You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But got this error: "Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 3 passed to phpFCMv1\Client::build() must be an instance of phpFCMv1\Data or null, array given"
...but $data is an array...
What's wrong?
Thanks.
The text was updated successfully, but these errors were encountered:
I've tried with something like:
$data = [];
$data['id'] = 10;
$data['link'] = 'https://www.github.com';
$client -> build($recipient, $notification, $data);
But got this error: "Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 3 passed to phpFCMv1\Client::build() must be an instance of phpFCMv1\Data or null, array given"
...but $data is an array...
What's wrong?
Thanks.
The text was updated successfully, but these errors were encountered: