@@ -631,7 +631,7 @@ protected function getDelayQueueArguments(string $destination, int $ttl): array
631
631
/**
632
632
* Get the exchange name, or empty string; as default value.
633
633
*/
634
- protected function getExchange (? string $ exchange = null ): string
634
+ protected function getExchange (string $ exchange = null ): string
635
635
{
636
636
return $ exchange ?? $ this ->getConfig ()->getExchange ();
637
637
}
@@ -648,7 +648,7 @@ protected function getRoutingKey(string $destination): string
648
648
/**
649
649
* Get the exchangeType, or AMQPExchangeType::DIRECT as default.
650
650
*/
651
- protected function getExchangeType (? string $ type = null ): string
651
+ protected function getExchangeType (string $ type = null ): string
652
652
{
653
653
$ constant = AMQPExchangeType::class.':: ' .Str::upper ($ type ?: $ this ->getConfig ()->getExchangeType ());
654
654
@@ -658,7 +658,7 @@ protected function getExchangeType(?string $type = null): string
658
658
/**
659
659
* Get the exchange for failed messages.
660
660
*/
661
- protected function getFailedExchange (? string $ exchange = null ): string
661
+ protected function getFailedExchange (string $ exchange = null ): string
662
662
{
663
663
return $ exchange ?? $ this ->getConfig ()->getFailedExchange ();
664
664
}
@@ -693,7 +693,7 @@ protected function isQueueDeclared(string $name): bool
693
693
*
694
694
* @throws AMQPProtocolChannelException
695
695
*/
696
- protected function declareDestination (string $ destination , ? string $ exchange = null , string $ exchangeType = AMQPExchangeType::DIRECT ): void
696
+ protected function declareDestination (string $ destination , string $ exchange = null , string $ exchangeType = AMQPExchangeType::DIRECT ): void
697
697
{
698
698
// When an exchange is provided and no exchange is present in RabbitMQ, create an exchange.
699
699
if ($ exchange && ! $ this ->isExchangeExists ($ exchange )) {
0 commit comments