Napp / xray-laravel

AWS X-Ray tracing for Laravel apps
MIT License
56 stars 34 forks source link

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

Open 4c61757261 opened 7 months ago

4c61757261 commented 7 months ago

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

emaadali commented 4 months ago

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.