mateusjunges / trackable-jobs-for-laravel

This package allows you to easily track your laravel jobs!
https://junges.dev/documentation/trackable-jobs-for-laravel
MIT License
279 stars 16 forks source link

$trackedJob must not be accessed before initialization #57

Open dipentatva opened 1 month ago

dipentatva commented 1 month ago

I am getting below error for laravel 11

[2024-09-08 06:39:49] local.ERROR: Typed property App\Jobs\ProcessClientInvoice::$trackedJob must not be accessed before initialization {"exception":"[object] (Error(code: 0): Typed property App\\Jobs\\ProcessClientInvoice::$trackedJob must not be accessed before initialization at C:\\wamp\\www\\web-app\\vendor\\mateusjunges\\laravel-trackable-jobs\\src\\Concerns\\Trackable.php:36)

dquirozswyft commented 3 days ago

I have the same issue, can anybody give us a hand. thanks!

dquirozswyft commented 3 days ago

@dipentatva the solution is here, just read https://junges.dev/documentation/trackable-jobs-for-laravel/v2/usage/1-tracking-jobs