Remove TemplateWrapper::render 2nd parameter not used

This commit is contained in:
Jérôme Tamarelle
2023-10-08 19:29:03 +02:00
parent 2d37866aa2
commit c56b87b4d7
+1 -3
View File
@@ -35,9 +35,7 @@ final class TemplateWrapper
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 = [])