diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-05-13 20:13:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 20:13:58 +0200 |
commit | 20a648ed95bb6e7e795d2c87caffaa37554b0d8f (patch) | |
tree | d458bd824c3186515a2d66d18f765414de6e6af7 /lib/public | |
parent | aff37408a6177b3ea190a269f50ffa7b131dd59f (diff) | |
parent | 7f899b3bc8a4debcde2d4f4b81d9044221718292 (diff) | |
download | nextcloud-server-20a648ed95bb6e7e795d2c87caffaa37554b0d8f.tar.gz nextcloud-server-20a648ed95bb6e7e795d2c87caffaa37554b0d8f.zip |
Merge pull request #32384 from nextcloud/improve-psalm-server-get
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Server.php | 5 |
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 |