aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-05-13 20:13:58 +0200
committerGitHub <noreply@github.com>2022-05-13 20:13:58 +0200
commit20a648ed95bb6e7e795d2c87caffaa37554b0d8f (patch)
treed458bd824c3186515a2d66d18f765414de6e6af7
parentaff37408a6177b3ea190a269f50ffa7b131dd59f (diff)
parent7f899b3bc8a4debcde2d4f4b81d9044221718292 (diff)
downloadnextcloud-server-20a648ed95bb6e7e795d2c87caffaa37554b0d8f.tar.gz
nextcloud-server-20a648ed95bb6e7e795d2c87caffaa37554b0d8f.zip
Merge pull request #32384 from nextcloud/improve-psalm-server-get
-rw-r--r--build/psalm-baseline.xml1
-rw-r--r--lib/public/Server.php5
2 files changed, 3 insertions, 3 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index c35d71a79ae..84030160d7b 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1371,7 +1371,6 @@
</InvalidReturnType>
</file>
<file src="apps/files_external/lib/Lib/Storage/SMB.php">
- <InvalidPropertyAssignmentValue occurrences="1"/>
<InvalidScalarArgument occurrences="7">
<code>$e-&gt;getCode()</code>
<code>$e-&gt;getCode()</code>
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