xray-laravel icon indicating copy to clipboard operation
xray-laravel copied to clipboard

Napp\Xray\Collectors\JobCollector::getJobId(): Return value must be of type string, int returned

Open 4c61757261 opened this issue 2 years ago • 1 comments

When running the queue worker with on a Laravel Notification that returns a mail and a database entry it causes a crash, because of the function getJobId that expects a string but returns a int.

image

4c61757261 avatar Apr 02 '24 09:04 4c61757261

What Laravel version and queue driver are you using? Illuminate\Contracts\Queue\Job::getJobId() has returned a string since Laravel 6.x. I assume 5.6 and 5.7 also returned a string.

  • https://laravel.com/api/6.x/Illuminate/Queue/Jobs/Job.html
  • https://laravel.com/api/7.x/Illuminate/Queue/Jobs/Job.html
  • https://laravel.com/api/8.x/Illuminate/Queue/Jobs/Job.html
  • https://laravel.com/api/9.x/Illuminate/Queue/Jobs/Job.html
  • https://laravel.com/api/10.x/Illuminate/Queue/Jobs/Job.html
  • https://laravel.com/api/11.x/Illuminate/Queue/Jobs/Job.html

emaadali avatar Jun 07 '24 00:06 emaadali