From 9f0dd80b3af8cc02e00b7591029c0221d51fcb1c Mon Sep 17 00:00:00 2001 From: jrfnl <jrfnl@users.noreply.github.com> Date: Fri, 22 Sep 2023 03:05:11 +0200 Subject: [PATCH] Docs: add missing return type void annotations --- src/WPIntegration/TestCase.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/WPIntegration/TestCase.php b/src/WPIntegration/TestCase.php index fe7b38a..4a14e0d 100644 --- a/src/WPIntegration/TestCase.php +++ b/src/WPIntegration/TestCase.php @@ -59,6 +59,8 @@ abstract class TestCase extends WP_UnitTestCase { /** * Wrapper method for the `set_up_before_class()` method for forward-compatibility with WP 5.9. + * + * @return void */ public static function setUpBeforeClass() { parent::setUpBeforeClass(); @@ -67,6 +69,8 @@ public static function setUpBeforeClass() { /** * Wrapper method for the `tear_down_after_class()` method for forward-compatibility with WP 5.9. + * + * @return void */ public static function tearDownAfterClass() { static::tear_down_after_class(); @@ -75,6 +79,8 @@ public static function tearDownAfterClass() { /** * Wrapper method for the `set_up()` method for forward-compatibility with WP 5.9. + * + * @return void */ public function setUp() { parent::setUp(); @@ -83,6 +89,8 @@ public function setUp() { /** * Wrapper method for the `tear_down()` method for forward-compatibility with WP 5.9. + * + * @return void */ public function tearDown() { $this->tear_down(); @@ -91,6 +99,8 @@ public function tearDown() { /** * Wrapper method for the `assert_pre_conditions()` method for forward-compatibility with WP 5.9. + * + * @return void */ protected function assertPreConditions() { parent::assertPreConditions(); @@ -99,6 +109,8 @@ protected function assertPreConditions() { /** * Wrapper method for the `assert_post_conditions()` method for forward-compatibility with WP 5.9. + * + * @return void */ protected function assertPostConditions() { parent::assertPostConditions(); @@ -107,31 +119,43 @@ protected function assertPostConditions() { /** * Placeholder method for forward-compatibility with WP 5.9. + * + * @return void */ public static function set_up_before_class() {} /** * Placeholder method for forward-compatibility with WP 5.9. + * + * @return void */ public static function tear_down_after_class() {} /** * Placeholder method for forward-compatibility with WP 5.9. + * + * @return void */ protected function set_up() {} /** * Placeholder method for forward-compatibility with WP 5.9. + * + * @return void */ protected function tear_down() {} /** * Placeholder method for forward-compatibility with WP 5.9. + * + * @return void */ protected function assert_pre_conditions() {} /** * Placeholder method for forward-compatibility with WP 5.9. + * + * @return void */ protected function assert_post_conditions() {} }