diff --git a/src/Dto/ExpoMessage.php b/src/Dto/ExpoMessage.php index 7b71c4d..099fded 100644 --- a/src/Dto/ExpoMessage.php +++ b/src/Dto/ExpoMessage.php @@ -14,7 +14,7 @@ * @author David Tang * @author James Hemery */ -final class ExpoMessage implements Jsonable, Arrayable +final class ExpoMessage implements Arrayable, Jsonable { public array $to; diff --git a/src/ExpoNotificationsService.php b/src/ExpoNotificationsService.php index 805bc5f..43e72b3 100644 --- a/src/ExpoNotificationsService.php +++ b/src/ExpoNotificationsService.php @@ -121,7 +121,7 @@ public function receipts(Collection|array $tokenIds): Collection if ($responseItem['status'] === ExpoResponseStatus::ERROR->value) { $data ->message($responseItem['message']) - ->details(json_decode($responseItem['details'], true)); + ->details($responseItem['details']); } return $data; diff --git a/src/Jobs/CheckTickets.php b/src/Jobs/CheckTickets.php index f86de9c..445d8fe 100644 --- a/src/Jobs/CheckTickets.php +++ b/src/Jobs/CheckTickets.php @@ -17,8 +17,8 @@ class CheckTickets { use Dispatchable; - use SerializesModels; use Queueable; + use SerializesModels; public function handle( ExpoNotificationsService $expoNotificationsService, diff --git a/src/Jobs/SendPendingNotifications.php b/src/Jobs/SendPendingNotifications.php index 03a2e10..ebcad36 100644 --- a/src/Jobs/SendPendingNotifications.php +++ b/src/Jobs/SendPendingNotifications.php @@ -14,8 +14,8 @@ class SendPendingNotifications { use Dispatchable; - use SerializesModels; use Queueable; + use SerializesModels; public function handle( ExpoNotificationsService $expoNotificationsService,