From 5d7f1d87d58b6578574c5425f419d9ec8f029ab9 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 27 Jul 2020 19:30:24 -0400 Subject: [PATCH] Don't typehint the view factory in the closure in extend.php This causes the view factory to resolve early, breaking all future extensions that use the view extender --- extensions/mentions/extend.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/mentions/extend.php b/extensions/mentions/extend.php index 90e182f95..9fcb65d65 100644 --- a/extensions/mentions/extend.php +++ b/extensions/mentions/extend.php @@ -25,7 +25,6 @@ use Flarum\Post\Event\Revised; use Flarum\Post\Post; use Flarum\User\User; use Illuminate\Contracts\Events\Dispatcher; -use Illuminate\Contracts\View\Factory; return [ (new Extend\Frontend('forum')) @@ -45,7 +44,7 @@ return [ (new Extend\View) ->namespace('flarum-mentions', __DIR__.'/views'), - function (Dispatcher $events, Factory $views) { + function (Dispatcher $events) { $events->listen(WillSerializeData::class, Listener\FilterVisiblePosts::class); $events->subscribe(Listener\AddPostMentionedByRelationship::class);