bpolaszek/webpush-bundle

jsonSerialize bug

Opened this issue · 1 comments

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()
            ]);

I submitted a pull request #18