From c51f65c958f114d4973b0feb0fcb1555b95f9d0d Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 11 Jun 2022 12:42:35 -0700
Subject: [PATCH] Fix fatal in test run under PHP 8

```
Fatal error: Declaration of PostFilters::setUp() must be compatible with Yoast\PHPUnitPolyfills\TestCases\TestCase::setUp(): void in /builds/wp-plugins/view-all-posts-pages/tests/test-post-filters.php on line 40
```
---
 tests/test-post-filters.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-post-filters.php b/tests/test-post-filters.php
index d886d03..38a9037 100755
--- a/tests/test-post-filters.php
+++ b/tests/test-post-filters.php
@@ -37,7 +37,7 @@ class PostFilters extends WP_UnitTestCase {
 	/**
 	 * Prepare data for tests.
 	 */
-	public function setUp() {
+	protected function setUp() {
 		parent::setUp();
 
 		static::$post_id = $this->factory->post->create(
-- 
GitLab