From a9a5b112b0f10b535b7eb3386b1ef616ba98fab2 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Tue, 24 Jan 2023 13:34:15 +0800 Subject: [PATCH] make filter function static --- tests/test-class-inbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-class-inbox.php b/tests/test-class-inbox.php index 4b13e1d..f5b29b1 100644 --- a/tests/test-class-inbox.php +++ b/tests/test-class-inbox.php @@ -19,7 +19,7 @@ class Test_Inbox extends WP_UnitTestCase { \add_filter( 'pre_get_remote_metadata_by_actor', array( '\Test_Inbox', 'get_remote_metadata_by_actor' ), 10, 2); } - public function get_remote_metadata_by_actor( $value, $actor ) { + public static function get_remote_metadata_by_actor( $value, $actor ) { return array( "name" => "Example User", "icon" => array(