[Messenger] Add missing return in AmazonSqsReceiver::getMessageCount

This commit is contained in:
Bogdan 2020-02-18 02:58:50 +02:00
parent 2b68d53526
commit 7042ff86ec

View File

@ -93,7 +93,7 @@ class AmazonSqsReceiver implements ReceiverInterface, MessageCountAwareInterface
public function getMessageCount(): int public function getMessageCount(): int
{ {
try { try {
$this->connection->getMessageCount(); return $this->connection->getMessageCount();
} catch (HttpExceptionInterface $e) { } catch (HttpExceptionInterface $e) {
throw new TransportException($e->getMessage(), 0, $e); throw new TransportException($e->getMessage(), 0, $e);
} }