Skip to content

Commit

Permalink
[TASK] Introduce type hints to TemplatePaths class
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b committed Aug 30, 2024
1 parent cefc034 commit a22cb01
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 150 deletions.
2 changes: 1 addition & 1 deletion src/View/AbstractTemplateView.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function render($actionName = null)
$output = $parsedTemplate->render($this->baseRenderingContext);
$this->stopRendering();
} else {
$layoutName = $parsedTemplate->getLayoutName($this->baseRenderingContext);
$layoutName = (string)$parsedTemplate->getLayoutName($this->baseRenderingContext);
try {
$parsedLayout = $templateParser->getOrParseAndStoreTemplate(
$templatePaths->getLayoutIdentifier($layoutName),
Expand Down
Loading

0 comments on commit a22cb01

Please sign in to comment.