From 18a4b6d4b18128eacbb8fcc00d8b414a13b2b5a5 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 3 Sep 2016 22:32:06 +0930 Subject: [PATCH] Fix another fatal error --- .../mentions/src/Listener/AddPostMentionedByRelationship.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php b/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php index c408e3f0e..d0d359639 100755 --- a/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php +++ b/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php @@ -142,10 +142,7 @@ class AddPostMentionedByRelationship } if (isset($posts)) { - $posts = array_filter($posts, function ($post) { - return is_object($post); - }); - + $posts = array_filter((array) $posts, 'is_object'); $ids = []; // Once we have the posts, construct a list of the IDs of all of