diff options
Diffstat (limited to 'build/psalm-baseline.xml')
-rw-r--r-- | build/psalm-baseline.xml | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 379ea1a1c97..cdbd0dc6771 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -722,7 +722,6 @@ <code>null</code> <code>null</code> <code>null</code> - <code>null</code> </NullableReturnStatement> <UndefinedClass occurrences="2"> <code>\OCA\Circles\Api\v1\Circles</code> @@ -1034,6 +1033,10 @@ <RedundantCondition occurrences="1"> <code>$userSession</code> </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"> <InvalidArgument occurrences="1"> @@ -1110,21 +1113,13 @@ </TypeDoesNotContainNull> </file> <file src="apps/federatedfilesharing/lib/FederatedShareProvider.php"> - <InvalidArrayAccess occurrences="2"> - <code>$remoteId</code> - <code>$token</code> - </InvalidArrayAccess> - <InvalidArrayOffset occurrences="1"> - <code>list($token, $remoteId)</code> - </InvalidArrayOffset> <InvalidReturnStatement occurrences="1"> <code>$shares</code> </InvalidReturnStatement> <InvalidReturnType occurrences="1"> <code>getSharesInFolder</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="6"> - <code>$share->getId()</code> + <InvalidScalarArgument occurrences="5"> <code>$shareId</code> <code>$shareId</code> <code>$shareId</code> @@ -1133,10 +1128,7 @@ </InvalidScalarArgument> </file> <file src="apps/federatedfilesharing/lib/Notifications.php"> - <InvalidReturnStatement occurrences="2"> - <code>[$ocmResult['token'], $ocmResult['providerId']]</code> - </InvalidReturnStatement> - <InvalidReturnType occurrences="4"> + <InvalidReturnType occurrences="3"> <code>bool</code> <code>bool</code> <code>bool</code> @@ -1150,13 +1142,12 @@ <InvalidReturnType occurrences="1"> <code>string</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="7"> + <InvalidScalarArgument occurrences="6"> <code>$id</code> <code>$id</code> <code>$id</code> <code>$id</code> <code>$id</code> - <code>$remoteId</code> <code>(int)$share['id']</code> </InvalidScalarArgument> </file> @@ -1622,12 +1613,6 @@ <code>getUserFolder</code> </UndefinedInterfaceMethod> </file> - <file src="apps/files_sharing/lib/Controller/DeletedShareAPIController.php"> - <UndefinedDocblockClass occurrences="2"> - <code>$this->getRoomShareHelper()</code> - <code>\OCA\Talk\Share\Helper\DeletedShareAPIController</code> - </UndefinedDocblockClass> - </file> <file src="apps/files_sharing/lib/Controller/ShareAPIController.php"> <InvalidScalarArgument occurrences="3"> <code>$code</code> @@ -2816,7 +2801,6 @@ <file src="core/routes.php"> <InvalidScope occurrences="2"> <code>$this</code> - <code>$this</code> </InvalidScope> </file> <file src="core/templates/layout.public.php"> @@ -5061,16 +5045,13 @@ <code>FederatedShareProvider</code> <code>ShareByMailProvider</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="5"> + <InvalidReturnStatement occurrences="4"> <code>$provider</code> <code>$provider</code> - <code>$shares</code> <code>$this->roomShareProvider</code> <code>$this->shareByCircleProvider</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="3"> - <code>getAllProviders</code> - <code>getProvider</code> + <InvalidReturnType occurrences="1"> <code>getProviderForType</code> </InvalidReturnType> <NullableReturnStatement occurrences="6"> @@ -5463,6 +5444,9 @@ <code>$data[floor($p)]</code> <code>$data[floor($p)]</code> </InvalidArrayOffset> + <InvalidPropertyAssignmentValue occurrences="1"> + <code>$resource</code> + </InvalidPropertyAssignmentValue> <InvalidReturnType occurrences="1"> <code>bool</code> </InvalidReturnType> @@ -5491,6 +5475,10 @@ <RedundantCondition occurrences="1"> <code>$isWritable</code> </RedundantCondition> + <TypeDoesNotContainType occurrences="2"> + <code>get_class($resource) === 'GdImage'</code> + <code>get_class($this->resource) === 'GdImage'</code> + </TypeDoesNotContainType> </file> <file src="lib/private/legacy/OC_JSON.php"> <InvalidScalarArgument occurrences="1"> |