Skip to content

Commit 3dc3269

Browse files
[12.x] Rename group to messageGroup property (#56919)
* [12.x] Rename `group` to `messageGroup` property fix #56895 Signed-off-by: Mior Muhammad Zaki <[email protected]> * formatting --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 5d773d2 commit 3dc3269

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Illuminate/Bus/Queueable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait Queueable
3232
*
3333
* @var string|null
3434
*/
35-
public $group;
35+
public $messageGroup;
3636

3737
/**
3838
* The number of seconds before the job should be made available.
@@ -119,7 +119,7 @@ public function onQueue($queue)
119119
*/
120120
public function onGroup($group)
121121
{
122-
$this->group = enum_value($group);
122+
$this->messageGroup = enum_value($group);
123123

124124
return $this;
125125
}

src/Illuminate/Queue/SqsQueue.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ protected function getQueueableOptions($job, $queue): array
223223

224224
$transformToString = fn ($value) => strval($value);
225225

226-
$messageGroupId = transform($job->group ?? null, $transformToString);
226+
$messageGroup = $job->messageGroup ?? null;
227+
228+
$messageGroupId = transform($messageGroup, $transformToString);
227229

228230
$messageDeduplicationId = match (true) {
229231
method_exists($job, 'deduplicationId') => transform($job->deduplicationId(), $transformToString),

0 commit comments

Comments
 (0)