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 ),