Closed Blum closed 4 years ago
Have a look at
trait Trackable
{
use SerializesModels {
__sleep as traitSleep;
}
and
public function __sleep()
{
if (!$this->statusId && $this->shouldTrack) {
$this->prepareStatus();
}
return $this->traitSleep();
}
There is no need to use SerializeModels anymore because its used in Trackable Trait und the sleep method is also being called
Hello, thank you for the nice work. Since upgrading to Laravel v5.8.34 I'm getting:
Seems like some other trait of these "Dispatchable, InteractsWithQueue, Queueable, SerializesModels" is using this method too..
Thanks
// Edit Turned out this is SerializesModels trait, which you also are using in Imtigger\LaravelJobStatus\Trackable trait. So the temporary solution is not to use SerializesModels trait in the trackable jobs..