Skip to content

Commit 112dfce

Browse files
committed
fix fabbot complaint
1 parent 85fb3f5 commit 112dfce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Tests/WorkerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function testWorkerLimitQueuesUnsupported()
278278

279279
$worker = new Worker(['transport1' => $receiver1, 'transport2' => $receiver2], $bus);
280280
$this->expectException(RuntimeException::class);
281-
$this->expectExceptionMessage(sprintf('Receiver for transport2 does not implement %s', QueueReceiverInterface::class));
281+
$this->expectExceptionMessage(sprintf('Receiver for transport2 does not implement "%s".', QueueReceiverInterface::class));
282282
$worker->run(['queues' => ['foo']]);
283283
}
284284

src/Symfony/Component/Messenger/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function run(array $options = []): void
7474
// if queue names are specified, all receivers must implement the QueueReceiverInterface
7575
foreach ($this->receivers as $transportName => $receiver) {
7676
if (!$receiver instanceof QueueReceiverInterface) {
77-
throw new RuntimeException(sprintf('Receiver for "%s" does not implement %s', $transportName, QueueReceiverInterface::class));
77+
throw new RuntimeException(sprintf('Receiver for "%s" does not implement "%s".', $transportName, QueueReceiverInterface::class));
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)