diff --git a/tests/phpunit/tests/template.php b/tests/phpunit/tests/template.php index 767d84e7a52a4..997b67bd59b06 100644 --- a/tests/phpunit/tests/template.php +++ b/tests/phpunit/tests/template.php @@ -1039,7 +1039,7 @@ public function test_wp_start_template_enhancement_output_buffer_for_json(): voi * expected_displayed_errors: string[], * }> */ - public function data_provider_to_test_wp_finalize_template_enhancement_output_buffer_with_errors_while_processing(): array { + public static function data_provider_to_test_wp_finalize_template_enhancement_output_buffer_with_errors_while_processing(): array { $log_and_display_all = array( 'error_reporting' => E_ALL, 'display_errors' => true, @@ -1429,7 +1429,7 @@ public function test_wp_load_classic_theme_block_styles_on_demand_in_block_theme * * @return array */ - public function data_wp_load_classic_theme_block_styles_on_demand(): array { + public static function data_wp_load_classic_theme_block_styles_on_demand(): array { return array( 'block_theme' => array( 'theme' => 'block-theme',