Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit 2f3574b

Browse files
committed
Refactor await syntax in RabbitMQListener for improved readability
1 parent 2f70b92 commit 2f3574b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Rabbitmq/RabbitMQListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function listen(array $queues): void
5252

5353
public function await(): void
5454
{
55-
await($this->scope);
56-
await($this->consumeScope);
55+
await $this->scope;
56+
await $this->consumeScope;
5757
}
5858

5959
private function handleMessage(AMQPMessage $msg, string $queue): void

0 commit comments

Comments
 (0)