From 972775e58ea85916410b59929b1d804adb9d1ae6 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Tue, 13 Nov 2018 14:37:51 +0100 Subject: [PATCH] Fix Notice in LegacyModule Notice: Only variables should be passed by reference in src/LegacyModule.php on line 68 --- src/LegacyModule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LegacyModule.php b/src/LegacyModule.php index 737101b5c2..5ef2a0ee61 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -65,7 +65,8 @@ class LegacyModule extends BaseModule $function_name = static::$moduleName . '_' . $function_suffix; if (\function_exists($function_name)) { - return $function_name(self::getApp()); + $a = self::getApp(); + return $function_name($a); } else { return parent::{$function_suffix}(); } -- 2.39.5