Skip to content

Commit 2062be4

Browse files
committed
Make use of the nullsafe operator
1 parent aef3db0 commit 2062be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public function purgeQueues()
556556

557557
private function getRoutingKeyForMessage(?AmqpStamp $amqpStamp): ?string
558558
{
559-
return (null !== $amqpStamp ? $amqpStamp->getRoutingKey() : null) ?? $this->getDefaultPublishRoutingKey();
559+
return $amqpStamp?->getRoutingKey() ?? $this->getDefaultPublishRoutingKey();
560560
}
561561
}
562562

0 commit comments

Comments
 (0)