From 672eddb8cbe4dde93c833fc09efc6c9a69698722 Mon Sep 17 00:00:00 2001 From: Simon Praetorius Date: Thu, 22 Aug 2024 23:27:37 +0200 Subject: [PATCH] [TASK] Annotate correct type hints in AbstractTemplateView Partials and sections can (of course) return anything, as can any template. --- src/View/AbstractTemplateView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/AbstractTemplateView.php b/src/View/AbstractTemplateView.php index 15398f408..75efac85d 100644 --- a/src/View/AbstractTemplateView.php +++ b/src/View/AbstractTemplateView.php @@ -171,7 +171,7 @@ function ($parent, TemplatePaths $paths) use ($layoutName) { * @param string $sectionName Name of section to render * @param array $variables The variables to use * @param bool $ignoreUnknown Ignore an unknown section and just return an empty string - * @return string rendered template for the section + * @return mixed rendered template for the section * @throws InvalidSectionException */ public function renderSection($sectionName, array $variables = [], $ignoreUnknown = false) @@ -252,7 +252,7 @@ public function renderSection($sectionName, array $variables = [], $ignoreUnknow * @param string|null $sectionName * @param array $variables * @param bool $ignoreUnknown Ignore an unknown section and just return an empty string - * @return string + * @return mixed */ public function renderPartial($partialName, $sectionName = null, array $variables = [], $ignoreUnknown = false) {