We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b9f2f commit a8dc4d3Copy full SHA for a8dc4d3
src/WebPushMessage.php
@@ -245,27 +245,6 @@ public function data($value)
245
*/
246
public function toArray()
247
{
248
- return collect([
249
- 'title',
250
- 'actions',
251
- 'badge',
252
- 'body',
253
- 'dir',
254
- 'icon',
255
- 'image',
256
- 'lang',
257
- 'renotify',
258
- 'requireInteraction',
259
- 'tag',
260
- 'vibrate',
261
- 'data',
262
- ])
263
- ->mapWithKeys(function ($option) {
264
- return [$option => $this->{$option}];
265
- })
266
- ->reject(function ($value) {
267
- return is_null($value);
268
269
- ->toArray();
+ return array_filter(get_object_vars($this));
270
}
271
0 commit comments