Skip to content

Commit

Permalink
[TASK] Annotate correct type hints in AbstractTemplateView (#986)
Browse files Browse the repository at this point in the history
Partials and sections can (of course) return anything, as can any
template.
  • Loading branch information
s2b committed Aug 22, 2024
1 parent 16f0b8c commit 1da4128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/AbstractTemplateView.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,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)
Expand Down Expand Up @@ -295,7 +295,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)
{
Expand Down

0 comments on commit 1da4128

Please sign in to comment.