Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-05-13 21:13:58 +0300
committerGitHub <noreply@github.com>2022-05-13 21:13:58 +0300
commit20a648ed95bb6e7e795d2c87caffaa37554b0d8f (patch)
treed458bd824c3186515a2d66d18f765414de6e6af7 /lib
parentaff37408a6177b3ea190a269f50ffa7b131dd59f (diff)
parent7f899b3bc8a4debcde2d4f4b81d9044221718292 (diff)
Merge pull request #32384 from nextcloud/improve-psalm-server-get
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Server.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/Server.php b/lib/public/Server.php
index be6b6a49236..f4522e8ae10 100644
--- a/lib/public/Server.php
+++ b/lib/public/Server.php
@@ -41,8 +41,9 @@ use Psr\Container\NotFoundExceptionInterface;
final class Server {
/**
* @template T
- * @param class-string<T>|string $serviceName
- * @return T|mixed
+ * @template S as class-string<T>|string
+ * @param S $serviceName
+ * @return (S is class-string<T> ? T : mixed)
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @since 25.0.0