Browse Source

Merge pull request #32384 from nextcloud/improve-psalm-server-get

tags/v25.0.0beta1
John Molakvoæ 2 years ago
parent
commit
20a648ed95
No account linked to committer's email address
2 changed files with 3 additions and 3 deletions
  1. 0
    1
      build/psalm-baseline.xml
  2. 3
    2
      lib/public/Server.php

+ 0
- 1
build/psalm-baseline.xml View File

@@ -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>

+ 3
- 2
lib/public/Server.php View File

@@ -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

Loading…
Cancel
Save