From 214ed2e8c66825e05e6d367f12f785721d6803b4 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Fri, 17 May 2024 08:44:33 +0000
Subject: [PATCH] fixes #4181

Closes #4181

Merge request studip/studip!3021
---
 lib/flexi/Factory.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/flexi/Factory.php b/lib/flexi/Factory.php
index b6c30fd531a..c33bd4382a4 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);
     }
-- 
GitLab