Skip to content

Commit f292318

Browse files
authored
Merge pull request vyuldashev#202 from StevePorter92/method-visibility
change method visibility to allow extension
2 parents bc5cc25 + 3d24fca commit f292318

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Queue/Jobs/RabbitMQJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function setJobId($id)
155155
*
156156
* @return mixed
157157
*/
158-
private function unserialize(array $body)
158+
protected function unserialize(array $body)
159159
{
160160
try {
161161
/** @noinspection UnserializeExploitsInspection */

src/Queue/RabbitMQQueue.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class RabbitMQQueue extends Queue implements QueueContract
2121
protected $queueOptions;
2222
protected $exchangeOptions;
2323

24-
private $declaredExchanges = [];
25-
private $declaredQueues = [];
24+
protected $declaredExchanges = [];
25+
protected $declaredQueues = [];
2626

2727
/**
2828
* @var AmqpContext
2929
*/
30-
private $context;
31-
private $correlationId;
30+
protected $context;
31+
protected $correlationId;
3232

3333
public function __construct(AmqpContext $context, array $config)
3434
{
@@ -182,7 +182,7 @@ public function getContext(): AmqpContext
182182
*
183183
* @return array [Interop\Amqp\AmqpQueue, Interop\Amqp\AmqpTopic]
184184
*/
185-
private function declareEverything(string $queueName = null): array
185+
protected function declareEverything(string $queueName = null): array
186186
{
187187
$queueName = $queueName ?: $this->queueName;
188188
$exchangeName = $this->exchangeOptions['name'] ?: $queueName;

0 commit comments

Comments
 (0)