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
to save an headache, i found a bug with the new release and am going to report it
just after upgrading, i got this error:
"message": "williamcruzme\\FCM\\Channels\\FcmChannel::__construct(): Argument #3 ($globalPayload) must be of type array, null given, called in /home/dotsynergy/code/git/laravel/meliver_backend/vendor/williamcruzme/laravel-fcm/src/FCMServiceProvider.php on line 27", "exception": "TypeError", "file": "/home/dotsynergy/code/git/laravel/meliver_backend/vendor/williamcruzme/laravel-fcm/src/Channels/FcmChannel.php", "line": 47,
and looked at the constructor.
apparently when the constructor gets called in FCMServiceProvider.php , the third parameter is forced as config('fcm.payload') , however in the declaration expects an array, and while no config parameter is supplied, the config for fcm.payload is null.
i'd propose a null check in the constructor declaration (since it expects an array but clearly it hasn't)
The text was updated successfully, but these errors were encountered:
to save an headache, i found a bug with the new release and am going to report it
just after upgrading, i got this error:
"message": "williamcruzme\\FCM\\Channels\\FcmChannel::__construct(): Argument #3 ($globalPayload) must be of type array, null given, called in /home/dotsynergy/code/git/laravel/meliver_backend/vendor/williamcruzme/laravel-fcm/src/FCMServiceProvider.php on line 27", "exception": "TypeError", "file": "/home/dotsynergy/code/git/laravel/meliver_backend/vendor/williamcruzme/laravel-fcm/src/Channels/FcmChannel.php", "line": 47,
and looked at the constructor.
apparently when the constructor gets called in FCMServiceProvider.php , the third parameter is forced as
config('fcm.payload')
, however in the declaration expects an array, and while no config parameter is supplied, the config for fcm.payload is null.i'd propose a null check in the constructor declaration (since it expects an array but clearly it hasn't)
The text was updated successfully, but these errors were encountered: