From 299680712ac8e21e262f2a48efc7e8cee9b15fcb Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Fri, 23 Oct 2026 20:03:30 +0530 Subject: [PATCH] Tests: Make data providers in filters.php static --- tests/phpunit/tests/filters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/filters.php b/tests/phpunit/tests/filters.php index 87d72053dbf58..1ca7c98a51ba9 100644 --- a/tests/phpunit/tests/filters.php +++ b/tests/phpunit/tests/filters.php @@ -181,7 +181,7 @@ public function test_priority_callback_order( $priorities, $expected_call_order, * * @return array[] */ - public function data_priority_callback_order_with_integers() { + public static function data_priority_callback_order_with_integers() { return array( 'int DESC' => array( 'priorities' => array( 10, 9 ), @@ -199,7 +199,7 @@ public function data_priority_callback_order_with_integers() { * * @return array[] */ - public function data_priority_callback_order_with_unhappy_path_nonintegers() { + public static function data_priority_callback_order_with_unhappy_path_nonintegers() { return array( // Numbers as strings and floats. 'int as string DESC' => array(