From dd904f39409065663c88cb12b7a1c955fe7fb4e4 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Sun, 7 Apr 2024 09:10:37 +0000
Subject: [PATCH] fixes #3968

Closes #3968

Merge request studip/studip!2820
---
 lib/classes/DIContainer.php | 2 +-
 lib/helpers.php             | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/classes/DIContainer.php b/lib/classes/DIContainer.php
index 9f0721b67d5..818d1910267 100644
--- a/lib/classes/DIContainer.php
+++ b/lib/classes/DIContainer.php
@@ -17,7 +17,7 @@ class DIContainer
     /**
      * Get the globally available instance of the container.
      *
-     * @return static
+     * @return ContainerInterface
      */
     public static function getInstance()
     {
diff --git a/lib/helpers.php b/lib/helpers.php
index 6c7accd91d2..a44f10b9b97 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -14,13 +14,13 @@ use Psr\Container\ContainerInterface;
  * ```
  * $logger = app(LoggerInterface::class);
  * ```
- *
- * @param string|null $entryId    entry name or a class name
+ * @template T
+ * @param class-string<T>|string|null $entryId    entry name or a class name
  * @param array       $parameters Optional parameters to use to build the entry.
  *                                Use this to force specific parameters to specific values.
  *                                Parameters not defined in this array will be resolved using the container.
  *
- * @return ContainerInterface|mixed either the DI container or the entry associated to the $entryId
+ * @return T|ContainerInterface|mixed either the DI container or the entry associated to the $entryId
  */
 function app($entryId = null, $parameters = [])
 {
-- 
GitLab