Skip to content
Snippets Groups Projects
Commit 5785a60e authored by Erick Hitter's avatar Erick Hitter
Browse files

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
```
parent 8e386725
No related branches found
No related tags found
1 merge request!18Fix fatal in test run under PHP 8
Pipeline #4786 passed
......@@ -36,11 +36,10 @@ class PostFilters extends WP_UnitTestCase {
/**
* Prepare data for tests.
*
* Not using `setUp` because Yoast polyfills add a return type for PHP 8
* that isn't supported before PHP 7.1.
*/
protected function set_up() {
public function set_up() {
parent::set_up();
static::$post_id = $this->factory->post->create(
array(
'post_title' => 'Pagination Test',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment