@@ -312,7 +312,7 @@ public function countMessagesInQueues(): int
312
312
/**
313
313
* @throws \AMQPException
314
314
*/
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
316
316
{
317
317
$ routingKey = $ this ->getRoutingKeyForMessage ($ amqpStamp );
318
318
$ isRetryAttempt = $ amqpStamp ? $ amqpStamp ->isRetryAttempt () : false ;
@@ -328,7 +328,7 @@ private function publishWithDelay(string $body, array $headers, int $delay, Amqp
328
328
);
329
329
}
330
330
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
332
332
{
333
333
$ attributes = $ amqpStamp ? $ amqpStamp ->getAttributes () : [];
334
334
$ attributes ['headers ' ] = array_merge ($ attributes ['headers ' ] ?? [], $ headers );
@@ -349,7 +349,7 @@ private function publishOnExchange(\AMQPExchange $exchange, string $body, string
349
349
}
350
350
}
351
351
352
- private function setupDelay (int $ delay , ?string $ routingKey , bool $ isRetryAttempt )
352
+ private function setupDelay (int $ delay , ?string $ routingKey , bool $ isRetryAttempt ): void
353
353
{
354
354
if ($ this ->autoSetupDelayExchange ) {
355
355
$ this ->setupDelayExchange ();
@@ -554,7 +554,7 @@ private function getDefaultPublishRoutingKey(): ?string
554
554
return $ this ->exchangeOptions ['default_publish_routing_key ' ] ?? null ;
555
555
}
556
556
557
- public function purgeQueues ()
557
+ public function purgeQueues (): void
558
558
{
559
559
foreach ($ this ->getQueueNames () as $ queueName ) {
560
560
$ this ->queue ($ queueName )->purge ();
0 commit comments