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

jsonSerialize bug #17

Open
deivid11 opened this issue Nov 4, 2019 · 1 comment
Open

jsonSerialize bug #17

deivid11 opened this issue Nov 4, 2019 · 1 comment

Comments

@deivid11
Copy link

deivid11 commented Nov 4, 2019

Hello, first of all thanks for this bundle. Im trying to send a notification with a link but when jsonSerialize is called it tries to convert an array to string and PHP sends a Notice, It is because array_diff works only with one dimension array. Here is my notification message.

 $pushNotification = new PushNotification($notification->getHtml(), [
                PushNotification::ICON => '/favicon.ico',
                PushNotification::DATA => ['link'=>$notification->getLink()],
                PushNotification::TAG => $notification->getGroupName()
            ]);
@deivid11
Copy link
Author

deivid11 commented Nov 4, 2019

I submitted a pull request #18

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