Skip to content

Commit 318d3f7

Browse files
Merge branch '5.4' into 6.0
* 5.4: Run php-cs-fixer
2 parents f80fd66 + f82e811 commit 318d3f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Transport/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public function testItDelaysTheMessage()
462462
$delayExchange = $this->createMock(\AMQPExchange::class);
463463
$delayExchange->expects($this->once())
464464
->method('publish')
465-
->with('{}', 'delay_messages__5000_delay', AMQP_NOPARAM, [
465+
->with('{}', 'delay_messages__5000_delay', \AMQP_NOPARAM, [
466466
'headers' => ['x-some-headers' => 'foo'],
467467
'delivery_mode' => 2,
468468
'timestamp' => time(),
@@ -477,7 +477,7 @@ public function testItRetriesTheMessage()
477477
$delayExchange = $this->createMock(\AMQPExchange::class);
478478
$delayExchange->expects($this->once())
479479
->method('publish')
480-
->with('{}', 'delay_messages__5000_retry', AMQP_NOPARAM);
480+
->with('{}', 'delay_messages__5000_retry', \AMQP_NOPARAM);
481481
$connection = $this->createDelayOrRetryConnection($delayExchange, '', 'delay_messages__5000_retry');
482482

483483
$amqpEnvelope = $this->createMock(\AMQPEnvelope::class);

Transport/AmqpStamp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public static function createFromAmqpEnvelope(\AMQPEnvelope $amqpEnvelope, self
6464
$attr['reply_to'] = $attr['reply_to'] ?? $amqpEnvelope->getReplyTo();
6565

6666
if (null === $retryRoutingKey) {
67-
$stamp = new self($previousStamp->routingKey ?? $amqpEnvelope->getRoutingKey(), $previousStamp->flags ?? AMQP_NOPARAM, $attr);
67+
$stamp = new self($previousStamp->routingKey ?? $amqpEnvelope->getRoutingKey(), $previousStamp->flags ?? \AMQP_NOPARAM, $attr);
6868
} else {
69-
$stamp = new self($retryRoutingKey, $previousStamp->flags ?? AMQP_NOPARAM, $attr);
69+
$stamp = new self($retryRoutingKey, $previousStamp->flags ?? \AMQP_NOPARAM, $attr);
7070
$stamp->isRetryAttempt = true;
7171
}
7272

0 commit comments

Comments
 (0)