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 *