YieldStudio / laravel-expo-notifier

Easily manage Expo notifications with Laravel. Support batched notifications.
MIT License
29 stars 11 forks source link

Command check expo tickets error: json_decode(): Argument #1 ($json) must be of type string, array given #18

Closed eightyfive closed 9 months ago

eightyfive commented 9 months ago

Simply running php artisan expo:tickets:check fails.

Is this related to the content of my receipts? (it should not fail anyway).

Let me know if valid, and I'll submit a PR.

 json_decode(): Argument #1 ($json) must be of type string, array given

  at vendor/yieldstudio/laravel-expo-notifier/src/ExpoNotificationsService.php:132
    128▕ 
    129▕             if ($responseItem["status"] === ExpoResponseStatus::ERROR->value) {
    130▕                 $data
    131▕                     ->message($responseItem["message"])
  ➜ 132▕                     ->details(json_decode($responseItem["details"], true));
    133▕             }
    134▕ 
    135▕             return $data;
    136▕         });