Skip to content
Snippets Groups Projects

Fix fatal in test run under PHP 8

Merged Erick Hitter requested to merge fix/test into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • c51f65c9
    Fix fatal in test run under PHP 8 · c51f65c9
    Erick Hitter authored
    ```
    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
    ```
@@ -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(
Loading