From 795f314d1a87d9dec619cee0f4bea88b082c9f74 Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Sun, 14 Feb 2021 18:01:31 +0000 Subject: [PATCH] Shift return type of base TestCase methods From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type: - `setUpBeforeClass()` - `setUp()` - `assertPreConditions()` - `assertPostConditions()` - `tearDown()` - `tearDownAfterClass()` - `onNotSuccessfulTest()` [1]: https://phpunit.de/announcements/phpunit-8.html --- tests/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 0a33c2e8..ee4dc629 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -104,7 +104,7 @@ class TestCase extends BaseTestCase } } - public function tearDown() + protected function tearDown(): void { Storage::disk('local')->deleteDirectory('testing-datastore'); parent::tearDown();