Skip to content

Commit

Permalink
Use static callbacks in tests.
Browse files Browse the repository at this point in the history
Co-authored-by: Mukesh Panchal <[email protected]>
  • Loading branch information
felixarntz and mukeshpanchal27 authored Feb 14, 2025
1 parent 029324e commit f290c26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function test_wp_print_speculation_rules_with_html5_support() {

add_filter(
'wp_speculation_rules_configuration',
function () {
static function () {
return array(
'mode' => 'prerender',
'eagerness' => 'moderate',
Expand All @@ -70,7 +70,7 @@ public function test_wp_print_speculation_rules_without_html5_support() {

add_filter(
'wp_speculation_rules_configuration',
function () {
static function () {
return array(
'mode' => 'prerender',
'eagerness' => 'moderate',
Expand Down

0 comments on commit f290c26

Please sign in to comment.