From: Alexander Ebert Date: Sun, 1 May 2022 12:02:24 +0000 (+0200) Subject: Missing `static` modifier for the callback X-Git-Tag: 5.5.0_Alpha_6~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ef0b379805b56209df65cf3d874183ca96ae8d9;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Missing `static` modifier for the callback --- diff --git a/files/lib/data/conversation/ConversationAction.class.php b/files/lib/data/conversation/ConversationAction.class.php index d600dc6..649e8de 100644 --- a/files/lib/data/conversation/ConversationAction.class.php +++ b/files/lib/data/conversation/ConversationAction.class.php @@ -919,7 +919,7 @@ class ConversationAction extends AbstractDatabaseObjectAction implements } else { if ($conversation->participants > 1) { $image = ''; - $usernames = \array_filter($conversation->getParticipantSummary(), function (User $user) { + $usernames = \array_filter($conversation->getParticipantSummary(), static function (User $user) { return $user->userID !== WCF::getUser()->userID; }); } else {