summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-07-28 07:50:17 +0200
committerJulius Härtl <jus@bitgrid.net>2022-10-14 10:45:16 +0200
commitcea2f79bbd02ba9eafa9993baa513ce8900d9f3f (patch)
treed0773ba1390941c0d4c82d41c64ce74e9805236e /build
parentf49ccd140fd5ada0aa640f6642464ad149c980e6 (diff)
downloadnextcloud-server-cea2f79bbd02ba9eafa9993baa513ce8900d9f3f.tar.gz
nextcloud-server-cea2f79bbd02ba9eafa9993baa513ce8900d9f3f.zip
Improve container return type annotations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'build')
-rw-r--r--build/psalm-baseline.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 8132311ff87..ec96d584379 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -840,6 +840,7 @@
</RedundantCondition>
<TypeDoesNotContainType occurrences="2">
<code>get_class($res) === 'OpenSSLAsymmetricKey'</code>
+ <code>is_object($res)</code>
</TypeDoesNotContainType>
</file>
<file src="apps/encryption/lib/Crypto/EncryptAll.php">
@@ -3159,7 +3160,6 @@
<code>bool</code>
<code>int</code>
<code>string</code>
- <code>string</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="5">
<code>$lastChunkPos</code>
@@ -3619,6 +3619,9 @@
<code>\OCP\Calendar\Room\IManager</code>
<code>\OCP\Files\Folder|null</code>
</ImplementedReturnTypeMismatch>
+ <InvalidArgument occurrences="1">
+ <code>new GenericEvent($user)</code>
+ </InvalidArgument>
<InvalidCatch occurrences="1"/>
<UndefinedDocblockClass occurrences="1">
<code>\OC\OCSClient</code>