From 2b71415d1f6d1309b53a7a191f1138d7f7cdbb19 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Wed, 4 Jan 2023 23:48:45 +0100 Subject: [PATCH] minor fixes --- src/BlockHandler/BlockPluginWrapper.php | 2 +- src/Compile/ObjectMethodBlockCompiler.php | 4 ---- src/Compile/ObjectMethodCallCompiler.php | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/BlockHandler/BlockPluginWrapper.php b/src/BlockHandler/BlockPluginWrapper.php index 95340ee4..48f6d2c5 100644 --- a/src/BlockHandler/BlockPluginWrapper.php +++ b/src/BlockHandler/BlockPluginWrapper.php @@ -13,6 +13,6 @@ class BlockPluginWrapper implements BlockHandlerInterface { } public function handle($params, $content, Template $template, &$repeat) { - return call_user_func_array($this->callback, [$params, $content, $template, &$repeat]); + return call_user_func_array($this->callback, [$params, $content, &$template, &$repeat]); } } \ No newline at end of file diff --git a/src/Compile/ObjectMethodBlockCompiler.php b/src/Compile/ObjectMethodBlockCompiler.php index 18df7bcc..c8e921ff 100644 --- a/src/Compile/ObjectMethodBlockCompiler.php +++ b/src/Compile/ObjectMethodBlockCompiler.php @@ -10,10 +10,6 @@ namespace Smarty\Compile; -use Smarty\Compiler\Template; -use Smarty\CompilerException; -use Smarty\Exception; - /** * Smarty Internal Plugin Compile Object Block Function Class * diff --git a/src/Compile/ObjectMethodCallCompiler.php b/src/Compile/ObjectMethodCallCompiler.php index ce1c53c2..673acedb 100644 --- a/src/Compile/ObjectMethodCallCompiler.php +++ b/src/Compile/ObjectMethodCallCompiler.php @@ -10,8 +10,6 @@ namespace Smarty\Compile; -use Smarty\Compile\Base; - /** * Smarty Internal Plugin Compile Object Function Class *