From d5cb1d5af670e3d5b6beb2aa0f91a207d2501c6d Mon Sep 17 00:00:00 2001 From: James Brooks Date: Thu, 15 Apr 2021 12:53:14 +0100 Subject: [PATCH] Correctly merge object payload data (#36998) --- src/Illuminate/Queue/Queue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Queue/Queue.php b/src/Illuminate/Queue/Queue.php index 52bd32e924e8..e6285008fc98 100755 --- a/src/Illuminate/Queue/Queue.php +++ b/src/Illuminate/Queue/Queue.php @@ -157,10 +157,10 @@ protected function createObjectPayload($job, $queue) : serialize(clone $job); return array_merge($payload, [ - 'data' => [ + 'data' => array_merge($payload['data'], [ 'commandName' => get_class($job), 'command' => $command, - ], + ]), ]); }