diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
|---|---|---|
| committer | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
| commit | 4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch) | |
| tree | 5c07151ae61276d334e88f6309c30d439a85c12e /lib/helpers.php | |
| parent | da0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff) | |
| parent | 97a188592c679890a25c37ab78463add76a52ff7 (diff) | |
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'lib/helpers.php')
| -rw-r--r-- | lib/helpers.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helpers.php b/lib/helpers.php index 6c7accd..a44f10b 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 = []) { |
