From 32d69ca3ca6f2632e4f87765beea82a616026336 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 15 Sep 2020 15:14:29 +0200 Subject: [PATCH] pass an instance of the job to queued closures --- src/Illuminate/Queue/CallQueuedClosure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/CallQueuedClosure.php b/src/Illuminate/Queue/CallQueuedClosure.php index 5de581b24040..d471b9be5c46 100644 --- a/src/Illuminate/Queue/CallQueuedClosure.php +++ b/src/Illuminate/Queue/CallQueuedClosure.php @@ -66,7 +66,7 @@ public static function create(Closure $job) */ public function handle(Container $container) { - $container->call($this->closure->getClosure()); + $container->call($this->closure->getClosure(), ['job' => $this]); } /**