From 30a04e7bf9a9f53e5994e05063dbd83c65b17068 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 10 Jan 2018 19:37:18 +0100 Subject: [PATCH] Don't use invokables with Container::call() --- src/Extension/ExtensionServiceProvider.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Extension/ExtensionServiceProvider.php b/src/Extension/ExtensionServiceProvider.php index 2e484bfbc..4a80efb25 100644 --- a/src/Extension/ExtensionServiceProvider.php +++ b/src/Extension/ExtensionServiceProvider.php @@ -24,11 +24,10 @@ class ExtensionServiceProvider extends AbstractServiceProvider $this->app->bind('flarum.extensions', ExtensionManager::class); $this->app->booting(function (Container $app) { - /** @var callable[] $extenders */ $extenders = $app->make('flarum.extensions')->getActiveExtenders(); foreach ($extenders as $extender) { - $app->call($extender); + $extender($app); } }); }