1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 15:34:04 +00:00

fix: pass parameters to method

This commit is contained in:
Julian Hundeloh 2024-06-18 09:49:07 +02:00 committed by GitHub
parent 36474ffd21
commit 85e7d8a6b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ class JobPipeline implements ShouldQueue
}
try {
$result = app()->call($job);
$result = app()->call($job, $this->passable);
} catch (Throwable $exception) {
if (method_exists(get_class($job[0]), 'failed')) {
call_user_func_array([$job[0], 'failed'], [$exception]);