From 562bdb55e7aac87858e31a59cc831efa0c1d87ea Mon Sep 17 00:00:00 2001 From: Xenomporio <> Date: Tue, 17 May 2022 23:06:47 +0200 Subject: [PATCH] Bugfix error call of non-static method --- classes/Modules/RoleSurvey/Bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Modules/RoleSurvey/Bootstrap.php b/classes/Modules/RoleSurvey/Bootstrap.php index e1b309d2..505610bf 100644 --- a/classes/Modules/RoleSurvey/Bootstrap.php +++ b/classes/Modules/RoleSurvey/Bootstrap.php @@ -48,7 +48,7 @@ final class Bootstrap * * @return SurveyService */ - public function onInitSurveyService(ContainerInterface $container): SurveyService + public static function onInitSurveyService(ContainerInterface $container): SurveyService { return new SurveyService($container->get('Database'), $container->get('SurveyGateway')); } @@ -58,7 +58,7 @@ final class Bootstrap * * @return SurveyGateway */ - public function onInitSurveyGateway(ContainerInterface $container): SurveyGateway + public static function onInitSurveyGateway(ContainerInterface $container): SurveyGateway { return new SurveyGateway($container->get('Database')); }