From d1cf21dcd23db0cde004b9925e3032637a6019d5 Mon Sep 17 00:00:00 2001 From: Matthew Kilgore Date: Sat, 25 Jul 2020 21:08:49 -0400 Subject: [PATCH] Replaced depreciated helper function with classfull function --- extensions/mentions/src/Listener/AddFilterByMentions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/mentions/src/Listener/AddFilterByMentions.php b/extensions/mentions/src/Listener/AddFilterByMentions.php index 9bf2ea5a2..e25106d20 100755 --- a/extensions/mentions/src/Listener/AddFilterByMentions.php +++ b/extensions/mentions/src/Listener/AddFilterByMentions.php @@ -10,12 +10,13 @@ namespace Flarum\Mentions\Listener; use Flarum\Event\ConfigurePostsQuery; +use Illuminate\Support\Arr; class AddFilterByMentions { public function handle(ConfigurePostsQuery $event) { - if ($mentionedId = array_get($event->filter, 'mentioned')) { + if ($mentionedId = Arr::get($event->filter, 'mentioned')) { $event->query->join('post_mentions_user', 'posts.id', '=', 'post_mentions_user.post_id') ->where('post_mentions_user.mentions_user_id', '=', $mentionedId); }