From 7179f5bfc58ca8e381500cc97d9e77588ad8ecb1 Mon Sep 17 00:00:00 2001 From: Valentyn Saik Date: Wed, 30 Dec 2020 15:46:48 +0200 Subject: [PATCH] [php8][typehint] Make tearDown return typehints compatible with phpunit 9.5 --- src/Amqp/SendAndReceiveTimestampAsIntegerSpec.php | 2 +- src/Amqp/SubscriptionConsumerAddConsumerTagOnSubscribeSpec.php | 2 +- src/Amqp/SubscriptionConsumerPreFetchCountSpec.php | 2 +- .../SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec.php | 2 +- src/RequeueMessageSpec.php | 2 +- src/SendAndReceiveDelayedMessageFromQueueSpec.php | 2 +- src/SendAndReceivePriorityMessagesFromQueueSpec.php | 2 +- src/SendAndReceiveTimeToLiveMessagesFromQueueSpec.php | 2 +- src/SendToAndReceiveFromQueueSpec.php | 2 +- src/SendToAndReceiveFromTopicSpec.php | 2 +- src/SendToAndReceiveNoWaitFromQueueSpec.php | 2 +- src/SendToAndReceiveNoWaitFromTopicSpec.php | 2 +- src/SendToTopicAndReceiveFromQueueSpec.php | 2 +- src/SendToTopicAndReceiveNoWaitFromQueueSpec.php | 2 +- src/SubscriptionConsumerConsumeFromAllSubscribedQueuesSpec.php | 2 +- src/SubscriptionConsumerConsumeUntilUnsubscribedSpec.php | 2 +- src/SubscriptionConsumerStopOnFalseSpec.php | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Amqp/SendAndReceiveTimestampAsIntegerSpec.php b/src/Amqp/SendAndReceiveTimestampAsIntegerSpec.php index 448fc99..e73e8e9 100644 --- a/src/Amqp/SendAndReceiveTimestampAsIntegerSpec.php +++ b/src/Amqp/SendAndReceiveTimestampAsIntegerSpec.php @@ -17,7 +17,7 @@ abstract class SendAndReceiveTimestampAsIntegerSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/Amqp/SubscriptionConsumerAddConsumerTagOnSubscribeSpec.php b/src/Amqp/SubscriptionConsumerAddConsumerTagOnSubscribeSpec.php index 52cdc47..90c37d0 100644 --- a/src/Amqp/SubscriptionConsumerAddConsumerTagOnSubscribeSpec.php +++ b/src/Amqp/SubscriptionConsumerAddConsumerTagOnSubscribeSpec.php @@ -16,7 +16,7 @@ abstract class SubscriptionConsumerAddConsumerTagOnSubscribeSpec extends TestCas */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/Amqp/SubscriptionConsumerPreFetchCountSpec.php b/src/Amqp/SubscriptionConsumerPreFetchCountSpec.php index c2dd4e0..e0c8224 100644 --- a/src/Amqp/SubscriptionConsumerPreFetchCountSpec.php +++ b/src/Amqp/SubscriptionConsumerPreFetchCountSpec.php @@ -16,7 +16,7 @@ abstract class SubscriptionConsumerPreFetchCountSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/Amqp/SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec.php b/src/Amqp/SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec.php index 5c10117..e2c75de 100644 --- a/src/Amqp/SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec.php +++ b/src/Amqp/SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec.php @@ -16,7 +16,7 @@ abstract class SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec extends Te */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/RequeueMessageSpec.php b/src/RequeueMessageSpec.php index a8d8e56..ef5ac2b 100644 --- a/src/RequeueMessageSpec.php +++ b/src/RequeueMessageSpec.php @@ -18,7 +18,7 @@ abstract class RequeueMessageSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendAndReceiveDelayedMessageFromQueueSpec.php b/src/SendAndReceiveDelayedMessageFromQueueSpec.php index 6b877fd..6009bfb 100644 --- a/src/SendAndReceiveDelayedMessageFromQueueSpec.php +++ b/src/SendAndReceiveDelayedMessageFromQueueSpec.php @@ -17,7 +17,7 @@ abstract class SendAndReceiveDelayedMessageFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendAndReceivePriorityMessagesFromQueueSpec.php b/src/SendAndReceivePriorityMessagesFromQueueSpec.php index 4a3859d..f2f3da2 100644 --- a/src/SendAndReceivePriorityMessagesFromQueueSpec.php +++ b/src/SendAndReceivePriorityMessagesFromQueueSpec.php @@ -17,7 +17,7 @@ abstract class SendAndReceivePriorityMessagesFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendAndReceiveTimeToLiveMessagesFromQueueSpec.php b/src/SendAndReceiveTimeToLiveMessagesFromQueueSpec.php index a3d6fc7..edfcdc8 100644 --- a/src/SendAndReceiveTimeToLiveMessagesFromQueueSpec.php +++ b/src/SendAndReceiveTimeToLiveMessagesFromQueueSpec.php @@ -17,7 +17,7 @@ abstract class SendAndReceiveTimeToLiveMessagesFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendToAndReceiveFromQueueSpec.php b/src/SendToAndReceiveFromQueueSpec.php index 8b13139..73d39d5 100644 --- a/src/SendToAndReceiveFromQueueSpec.php +++ b/src/SendToAndReceiveFromQueueSpec.php @@ -17,7 +17,7 @@ abstract class SendToAndReceiveFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendToAndReceiveFromTopicSpec.php b/src/SendToAndReceiveFromTopicSpec.php index f54a5c3..19f7a16 100644 --- a/src/SendToAndReceiveFromTopicSpec.php +++ b/src/SendToAndReceiveFromTopicSpec.php @@ -17,7 +17,7 @@ abstract class SendToAndReceiveFromTopicSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendToAndReceiveNoWaitFromQueueSpec.php b/src/SendToAndReceiveNoWaitFromQueueSpec.php index ac12ab0..f9f742d 100644 --- a/src/SendToAndReceiveNoWaitFromQueueSpec.php +++ b/src/SendToAndReceiveNoWaitFromQueueSpec.php @@ -17,7 +17,7 @@ abstract class SendToAndReceiveNoWaitFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendToAndReceiveNoWaitFromTopicSpec.php b/src/SendToAndReceiveNoWaitFromTopicSpec.php index 782c92f..50c0728 100644 --- a/src/SendToAndReceiveNoWaitFromTopicSpec.php +++ b/src/SendToAndReceiveNoWaitFromTopicSpec.php @@ -17,7 +17,7 @@ abstract class SendToAndReceiveNoWaitFromTopicSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendToTopicAndReceiveFromQueueSpec.php b/src/SendToTopicAndReceiveFromQueueSpec.php index 039f35d..152c5e8 100644 --- a/src/SendToTopicAndReceiveFromQueueSpec.php +++ b/src/SendToTopicAndReceiveFromQueueSpec.php @@ -18,7 +18,7 @@ abstract class SendToTopicAndReceiveFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SendToTopicAndReceiveNoWaitFromQueueSpec.php b/src/SendToTopicAndReceiveNoWaitFromQueueSpec.php index ee4aa05..1097694 100644 --- a/src/SendToTopicAndReceiveNoWaitFromQueueSpec.php +++ b/src/SendToTopicAndReceiveNoWaitFromQueueSpec.php @@ -18,7 +18,7 @@ abstract class SendToTopicAndReceiveNoWaitFromQueueSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SubscriptionConsumerConsumeFromAllSubscribedQueuesSpec.php b/src/SubscriptionConsumerConsumeFromAllSubscribedQueuesSpec.php index 280a9ba..683f462 100644 --- a/src/SubscriptionConsumerConsumeFromAllSubscribedQueuesSpec.php +++ b/src/SubscriptionConsumerConsumeFromAllSubscribedQueuesSpec.php @@ -18,7 +18,7 @@ abstract class SubscriptionConsumerConsumeFromAllSubscribedQueuesSpec extends Te */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SubscriptionConsumerConsumeUntilUnsubscribedSpec.php b/src/SubscriptionConsumerConsumeUntilUnsubscribedSpec.php index a821eb5..8574d83 100644 --- a/src/SubscriptionConsumerConsumeUntilUnsubscribedSpec.php +++ b/src/SubscriptionConsumerConsumeUntilUnsubscribedSpec.php @@ -24,7 +24,7 @@ abstract class SubscriptionConsumerConsumeUntilUnsubscribedSpec extends TestCase */ protected $subscriptionConsumer; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close(); diff --git a/src/SubscriptionConsumerStopOnFalseSpec.php b/src/SubscriptionConsumerStopOnFalseSpec.php index a8b5f97..ca60d0e 100644 --- a/src/SubscriptionConsumerStopOnFalseSpec.php +++ b/src/SubscriptionConsumerStopOnFalseSpec.php @@ -18,7 +18,7 @@ abstract class SubscriptionConsumerStopOnFalseSpec extends TestCase */ private $context; - protected function tearDown() + protected function tearDown(): void { if ($this->context) { $this->context->close();