diff --git a/src/TemplateWrapper.php b/src/TemplateWrapper.php index c9c6b07c669..1ecd82251f3 100644 --- a/src/TemplateWrapper.php +++ b/src/TemplateWrapper.php @@ -35,9 +35,7 @@ public function __construct(Environment $env, Template $template) public function render(array $context = []): string { - // using func_get_args() allows to not expose the blocks argument - // as it should only be used by internal code - return $this->template->render($context, \func_get_args()[1] ?? []); + return $this->template->render($context); } public function display(array $context = [])