Skip to content

Commit 42fb585

Browse files
wouterjnicolas-grekas
authored andcommitted
Add void return types
1 parent 10ccf5f commit 42fb585

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Transport/Connection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function countMessagesInQueues(): int
312312
/**
313313
* @throws \AMQPException
314314
*/
315-
private function publishWithDelay(string $body, array $headers, int $delay, AmqpStamp $amqpStamp = null)
315+
private function publishWithDelay(string $body, array $headers, int $delay, AmqpStamp $amqpStamp = null): void
316316
{
317317
$routingKey = $this->getRoutingKeyForMessage($amqpStamp);
318318
$isRetryAttempt = $amqpStamp ? $amqpStamp->isRetryAttempt() : false;
@@ -328,7 +328,7 @@ private function publishWithDelay(string $body, array $headers, int $delay, Amqp
328328
);
329329
}
330330

331-
private function publishOnExchange(\AMQPExchange $exchange, string $body, string $routingKey = null, array $headers = [], AmqpStamp $amqpStamp = null)
331+
private function publishOnExchange(\AMQPExchange $exchange, string $body, string $routingKey = null, array $headers = [], AmqpStamp $amqpStamp = null): void
332332
{
333333
$attributes = $amqpStamp ? $amqpStamp->getAttributes() : [];
334334
$attributes['headers'] = array_merge($attributes['headers'] ?? [], $headers);
@@ -349,7 +349,7 @@ private function publishOnExchange(\AMQPExchange $exchange, string $body, string
349349
}
350350
}
351351

352-
private function setupDelay(int $delay, ?string $routingKey, bool $isRetryAttempt)
352+
private function setupDelay(int $delay, ?string $routingKey, bool $isRetryAttempt): void
353353
{
354354
if ($this->autoSetupDelayExchange) {
355355
$this->setupDelayExchange();
@@ -554,7 +554,7 @@ private function getDefaultPublishRoutingKey(): ?string
554554
return $this->exchangeOptions['default_publish_routing_key'] ?? null;
555555
}
556556

557-
public function purgeQueues()
557+
public function purgeQueues(): void
558558
{
559559
foreach ($this->getQueueNames() as $queueName) {
560560
$this->queue($queueName)->purge();

0 commit comments

Comments
 (0)