mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 22:17:36 +00:00
Remove TemplateWrapper::render 2nd parameter not used
This commit is contained in:
@@ -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 = [])
|
||||
|
||||
Reference in New Issue
Block a user