Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit ec61592

Browse files
author
Will Taylor-Jackson
authored
Merge pull request #8 from designmynight/match-5.7-args
refactor: update method to match 5.7 args
2 parents e6f4a6a + 6659cde commit ec61592

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"designmynight"
1212
],
1313
"require": {
14-
"illuminate/support": "^5.6",
14+
"illuminate/support": "^5.7",
1515
"laravel/horizon": "^1.4",
1616
"vladimir-yuldashev/laravel-queue-rabbitmq": "^7.1.1"
1717
},

src/RabbitMQQueue.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,13 @@ protected function event($queue, $event)
128128
* Create a payload string from the given job and data.
129129
*
130130
* @param string $job
131+
* @param string $queue
131132
* @param mixed $data
132133
* @return string
133134
*/
134-
protected function createPayloadArray($job, $data = '')
135+
protected function createPayloadArray($job, $queue, $data = '')
135136
{
136-
return array_merge(parent::createPayloadArray($job, $data), [
137+
return array_merge(parent::createPayloadArray($job, $queue, $data), [
137138
'id' => $this->getRandomId(),
138139
'attempts' => 0,
139140
]);

0 commit comments

Comments
 (0)