aboutsummaryrefslogtreecommitdiff
path: root/lib/flexi/Factory.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/flexi/Factory.php')
-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);
}