Skip to content

Commit 7179f5b

Browse files
committed
[php8][typehint] Make tearDown return typehints compatible with phpunit 9.5
1 parent f0414b8 commit 7179f5b

17 files changed

+17
-17
lines changed

src/Amqp/SendAndReceiveTimestampAsIntegerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class SendAndReceiveTimestampAsIntegerSpec extends TestCase
1717
*/
1818
private $context;
1919

20-
protected function tearDown()
20+
protected function tearDown(): void
2121
{
2222
if ($this->context) {
2323
$this->context->close();

src/Amqp/SubscriptionConsumerAddConsumerTagOnSubscribeSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class SubscriptionConsumerAddConsumerTagOnSubscribeSpec extends TestCas
1616
*/
1717
private $context;
1818

19-
protected function tearDown()
19+
protected function tearDown(): void
2020
{
2121
if ($this->context) {
2222
$this->context->close();

src/Amqp/SubscriptionConsumerPreFetchCountSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class SubscriptionConsumerPreFetchCountSpec extends TestCase
1616
*/
1717
private $context;
1818

19-
protected function tearDown()
19+
protected function tearDown(): void
2020
{
2121
if ($this->context) {
2222
$this->context->close();

src/Amqp/SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class SubscriptionConsumerRemoveConsumerTagOnUnsubscribeSpec extends Te
1616
*/
1717
private $context;
1818

19-
protected function tearDown()
19+
protected function tearDown(): void
2020
{
2121
if ($this->context) {
2222
$this->context->close();

src/RequeueMessageSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class RequeueMessageSpec extends TestCase
1818
*/
1919
private $context;
2020

21-
protected function tearDown()
21+
protected function tearDown(): void
2222
{
2323
if ($this->context) {
2424
$this->context->close();

src/SendAndReceiveDelayedMessageFromQueueSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class SendAndReceiveDelayedMessageFromQueueSpec extends TestCase
1717
*/
1818
private $context;
1919

20-
protected function tearDown()
20+
protected function tearDown(): void
2121
{
2222
if ($this->context) {
2323
$this->context->close();

src/SendAndReceivePriorityMessagesFromQueueSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class SendAndReceivePriorityMessagesFromQueueSpec extends TestCase
1717
*/
1818
private $context;
1919

20-
protected function tearDown()
20+
protected function tearDown(): void
2121
{
2222
if ($this->context) {
2323
$this->context->close();

src/SendAndReceiveTimeToLiveMessagesFromQueueSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class SendAndReceiveTimeToLiveMessagesFromQueueSpec extends TestCase
1717
*/
1818
private $context;
1919

20-
protected function tearDown()
20+
protected function tearDown(): void
2121
{
2222
if ($this->context) {
2323
$this->context->close();

src/SendToAndReceiveFromQueueSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class SendToAndReceiveFromQueueSpec extends TestCase
1717
*/
1818
private $context;
1919

20-
protected function tearDown()
20+
protected function tearDown(): void
2121
{
2222
if ($this->context) {
2323
$this->context->close();

src/SendToAndReceiveFromTopicSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class SendToAndReceiveFromTopicSpec extends TestCase
1717
*/
1818
private $context;
1919

20-
protected function tearDown()
20+
protected function tearDown(): void
2121
{
2222
if ($this->context) {
2323
$this->context->close();

0 commit comments

Comments
 (0)