It seems like dispatch() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method onQueue() does not exist on Anfischer\Foundation\Job\Job. It seems like you code against a sub-type of Anfischer\Foundation\Job\Job such as Anfischer\Foundation\Job\QueueableJob.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
39
$job->/** @scrutinizer ignore-call */
40
onQueue($queue);
Loading history...
40
41
6
return $this->dispatch($job);
42
}
43
44
45
/**
46
* Prepare a job by marshalling it if needed.
47
*
48
* @param $job
49
* @param $arguments
50
* @param array $extra
51
* @return mixed
52
*/
53
18
private function prepare($job, $arguments, array $extra) : Job
It seems like marshal() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation