From b0cabc093c6a8551f73bc7d948d3ba2465765c13 Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Sat, 1 Jul 2023 16:42:59 +0200 Subject: [PATCH] Update signature to acknowledge a TemplateWrapper --- src/Extension/CoreExtension.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Extension/CoreExtension.php b/src/Extension/CoreExtension.php index f99adda45..ba13a0777 100644 --- a/src/Extension/CoreExtension.php +++ b/src/Extension/CoreExtension.php @@ -1303,12 +1303,12 @@ function twig_test_iterable($value) /** * Renders a template. * - * @param array $context - * @param string|array $template The template to render or an array of templates to try consecutively - * @param array $variables The variables to pass to the template - * @param bool $withContext - * @param bool $ignoreMissing Whether to ignore missing templates or not - * @param bool $sandboxed Whether to sandbox the template or not + * @param array $context + * @param string|array|TemplateWrapper $template The template to render or an array of templates to try consecutively + * @param array $variables The variables to pass to the template + * @param bool $withContext + * @param bool $ignoreMissing Whether to ignore missing templates or not + * @param bool $sandboxed Whether to sandbox the template or not * * @return string The rendered template */