From c302ec83f6096753bf68888637c0c02adf9da8e8 Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Fri, 23 Oct 2026 22:52:35 +0530 Subject: [PATCH] Tests: Make data provider in rewrite.php static --- tests/phpunit/tests/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/rewrite.php b/tests/phpunit/tests/rewrite.php index 3ffb3ba2a81a2..debe4ee63d018 100644 --- a/tests/phpunit/tests/rewrite.php +++ b/tests/phpunit/tests/rewrite.php @@ -294,7 +294,7 @@ public function test_url_to_postid_matches_www_prefix_only( $host, $is_local ) { * * @return array[] */ - public function data_url_to_postid_host_matching() { + public static function data_url_to_postid_host_matching() { return array( 'the site host' => array( 'example.com', true ), 'the site host with www' => array( 'www.example.com', true ),