From cbd94c1809b5a23eda08c18f353ee2aa60b234f9 Mon Sep 17 00:00:00 2001 From: Fozle Rabby Date: Fri, 6 Nov 2026 11:31:10 -0400 Subject: [PATCH] Tests: Make post type form data providers in view-config.php public and static. Declares `data_post_types_with_excerpt_in_form()` and `data_post_types_with_author_in_form()` in `tests/phpunit/tests/view-config.php` as `public static` for modern PHPUnit compatibility. See #66211. --- tests/phpunit/tests/view-config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/view-config.php b/tests/phpunit/tests/view-config.php index 745fbbaab6821..b3980ea34c69c 100644 --- a/tests/phpunit/tests/view-config.php +++ b/tests/phpunit/tests/view-config.php @@ -204,7 +204,7 @@ public function test_excerpt_layout_shows_placeholder_if_empty( $post_type ) { * * @return array[] */ - public function data_post_types_with_excerpt_in_form() { + public static function data_post_types_with_excerpt_in_form() { return array( 'page' => array( 'page' ), 'post' => array( 'post' ), @@ -268,7 +268,7 @@ public function test_author_layout_shows_placeholder_if_empty( $post_type ) { * * @return array[] */ - public function data_post_types_with_author_in_form() { + public static function data_post_types_with_author_in_form() { return array( 'page' => array( 'page' ), 'post' => array( 'post' ),