aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-17 08:44:33 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-17 08:44:33 +0000
commit214ed2e8c66825e05e6d367f12f785721d6803b4 (patch)
treeda3b135f3a6d96e12a9bf7832096719cf798ecfc /lib
parent1b282d0fc3303c2ecfed9073bc60497012ac078a (diff)
fixes #4181
Closes #4181 Merge request studip/studip!3021
Diffstat (limited to 'lib')
-rw-r--r--lib/flexi/Factory.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/flexi/Factory.php b/lib/flexi/Factory.php
index b6c30fd..c33bd43 100644
--- a/lib/flexi/Factory.php
+++ b/lib/flexi/Factory.php
@@ -224,10 +224,10 @@ class Factory
* Class method to parse, render and return the presentation of a
* template.
*
- * @param Template|string $template A name of a template or a template
- * @param array $attributes An associative array of attributes and their
- * associated values.
- * @param string|null $layout A name of a layout template.
+ * @param Template|string $template A name of a template or a template
+ * @param array $attributes An associative array of attributes and their
+ * associated values.
+ * @param Template|string|null $layout A name of a layout template or a template.
*
* @return string A string representing the rendered presentation.
*
@@ -236,7 +236,7 @@ class Factory
public function render(
Template|string $template,
array $attributes = [],
- ?string $layout = null
+ Template|string|null $layout = null
): string {
return $this->open($template)->render($attributes, $layout);
}