Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 5d43b1a

Browse files
committed
Merge branch 'master' of git://github.com/rasmuscnielsen/Laravel-FCM into rasmuscnielsen-master
2 parents 2efca8c + 495a9b5 commit 5d43b1a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
"tests/"
3434
]
3535
},
36+
"extra": {
37+
"laravel": {
38+
"providers": [
39+
"LaravelFCM\\FCMServiceProvider"
40+
],
41+
"aliases": {
42+
"FCM": "LaravelFCM\\Facades\\FCM"
43+
}
44+
}
45+
},
3646
"minimum-stability": "dev",
3747
"prefer-stable": true,
3848
"extra": {

src/Message/PayloadNotification.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ public function toArray()
146146
];
147147

148148
// remove null values
149-
$notification = array_filter($notification);
150-
149+
$notification = array_filter($notification, function($value) {
150+
return $value !== null;
151+
});
152+
151153
return $notification;
152154
}
153155
}

0 commit comments

Comments
 (0)