aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-17 12:40:35 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-17 12:40:35 +0200
commit54031e370ac05b127d4bc799de99ce1b643adcbb (patch)
tree36d71151c54c260fbefffdf6ed137862e922b74a /build
parent0a2a4d86870f9738544c67cc494c3f48a8f4e924 (diff)
downloadnextcloud-server-54031e370ac05b127d4bc799de99ce1b643adcbb.tar.gz
nextcloud-server-54031e370ac05b127d4bc799de99ce1b643adcbb.zip
Fix various other small psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'build')
-rw-r--r--build/psalm-baseline.xml61
1 files changed, 1 insertions, 60 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 3b4d30cf9ab..bdb4d24715c 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -837,7 +837,6 @@
</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">
@@ -1294,36 +1293,7 @@
<code>addServiceListener</code>
</InvalidArgument>
</file>
- <file src="apps/files_sharing/lib/Cache.php">
- <FalsableReturnStatement occurrences="1">
- <code>false</code>
- </FalsableReturnStatement>
- <NullArgument occurrences="1">
- <code>null</code>
- </NullArgument>
- </file>
- <file src="apps/files_sharing/lib/Capabilities.php">
- <InvalidScalarArgument occurrences="1">
- <code>Constants::PERMISSION_ALL</code>
- </InvalidScalarArgument>
- </file>
- <file src="apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php">
- <UndefinedInterfaceMethod occurrences="1">
- <code>getUserFolder</code>
- </UndefinedInterfaceMethod>
- </file>
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
- <InvalidOperand occurrences="1">
- <code>$permissions</code>
- </InvalidOperand>
- <InvalidScalarArgument occurrences="3">
- <code>$code</code>
- <code>$code</code>
- <code>Constants::PERMISSION_ALL</code>
- </InvalidScalarArgument>
- <RedundantCondition occurrences="1">
- <code>$permissions &amp; Constants::PERMISSION_READ</code>
- </RedundantCondition>
<UndefinedClass occurrences="2">
<code>\OCA\Circles\Api\v1\Circles</code>
<code>\OCA\Circles\Api\v1\Circles</code>
@@ -1339,8 +1309,7 @@
<InvalidArgument occurrences="1">
<code>$files_list</code>
</InvalidArgument>
- <InvalidScalarArgument occurrences="3">
- <code>$freeSpace</code>
+ <InvalidScalarArgument occurrences="1">
<code>$maxUploadFilesize</code>
<code>$maxUploadFilesize</code>
</InvalidScalarArgument>
@@ -1348,39 +1317,11 @@
<code>null</code>
</NullArgument>
</file>
- <file src="apps/files_sharing/lib/Controller/ShareInfoController.php">
- <NullArgument occurrences="1">
- <code>$password</code>
- </NullArgument>
- </file>
- <file src="apps/files_sharing/lib/External/Cache.php">
- <ParamNameMismatch occurrences="1">
- <code>$id</code>
- </ParamNameMismatch>
- </file>
- <file src="apps/files_sharing/lib/External/Manager.php">
- <InvalidScalarArgument occurrences="1">
- <code>(int) $remoteShare</code>
- </InvalidScalarArgument>
- </file>
- <file src="apps/files_sharing/lib/External/Mount.php">
- <InvalidDocblock occurrences="1">
- <code>public function removeMount() {</code>
- </InvalidDocblock>
- </file>
<file src="apps/files_sharing/lib/External/Scanner.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$cacheData</code>
</MoreSpecificImplementedParamType>
</file>
- <file src="apps/files_sharing/lib/External/Storage.php">
- <InvalidReturnStatement occurrences="1">
- <code>$this-&gt;getPermissions($path) &amp; Constants::PERMISSION_SHARE</code>
- </InvalidReturnStatement>
- <InvalidReturnType occurrences="1">
- <code>isSharable</code>
- </InvalidReturnType>
- </file>
<file src="apps/files_sharing/lib/Listener/LegacyBeforeTemplateRenderedListener.php">
<InvalidArgument occurrences="1">
<code>$legacyEvent</code>