Skip to content

Commit fd8af1d

Browse files
committed
fix CI issues.
1 parent 57fb31b commit fd8af1d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Queue/Connectors/RabbitMQConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function connect(array $config): Queue
6565

6666
$context = $factory->createContext();
6767

68-
$this->dispatcher->listen(WorkerStopping::class, function () use($context) {
68+
$this->dispatcher->listen(WorkerStopping::class, function () use ($context) {
6969
$context->close();
7070
});
7171

tests/Queue/RabbitMQQueueTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function testShouldSendExpectedMessageOnPushRaw()
121121
->expects($this->once())
122122
->method('send')
123123
->with($this->identicalTo($topic), $this->isInstanceOf(AmqpMessage::class))
124-
->willReturnCallback(function($actualTopic, AmqpMessage $message) use ($expectedQueueName, $expectedBody, $topic) {
124+
->willReturnCallback(function ($actualTopic, AmqpMessage $message) use ($expectedQueueName, $expectedBody, $topic) {
125125
$this->assertSame($topic, $actualTopic);
126126
$this->assertSame($expectedBody, $message->getBody());
127127
$this->assertSame($expectedQueueName, $message->getRoutingKey());
@@ -178,7 +178,7 @@ public function testShouldSetAttemptCountHeaderIfNotNull()
178178
->expects($this->once())
179179
->method('send')
180180
->with($this->identicalTo($topic), $this->isInstanceOf(AmqpMessage::class))
181-
->willReturnCallback(function($actualTopic, AmqpMessage $message) use ($expectedAttempts) {
181+
->willReturnCallback(function ($actualTopic, AmqpMessage $message) use ($expectedAttempts) {
182182
$this->assertSame($expectedAttempts, $message->getProperty(RabbitMQQueue::ATTEMPT_COUNT_HEADERS_KEY));
183183
})
184184
;
@@ -270,7 +270,7 @@ public function testShouldLogExceptionOnPushRaw()
270270
$producer
271271
->expects($this->once())
272272
->method('send')
273-
->willReturnCallback(function() {
273+
->willReturnCallback(function () {
274274
throw new \LogicException('Something went wrong while sending a message');
275275
})
276276
;
@@ -398,7 +398,7 @@ public function testShouldLogExceptionOnPop()
398398
$consumer
399399
->expects($this->once())
400400
->method('receiveNoWait')
401-
->willReturnCallback(function() {
401+
->willReturnCallback(function () {
402402
throw new \LogicException('Something went wrong while receiving a message');
403403
})
404404
;

0 commit comments

Comments
 (0)