summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-23 11:41:21 +0200
committerGitHub <noreply@github.com>2022-05-23 11:41:21 +0200
commit8d599c341023c5fe850da9bdbc3807a277a61151 (patch)
treebed44e448d398db054b4a6e8ed1a6102ef49d288 /build
parent384efc8958ab9bf1738e4fd5925c8b3e451c3f0f (diff)
parent9ec0cb0a90ecdc7f4181ce8399bfe0c3a35842a2 (diff)
downloadnextcloud-server-8d599c341023c5fe850da9bdbc3807a277a61151.tar.gz
nextcloud-server-8d599c341023c5fe850da9bdbc3807a277a61151.zip
Merge pull request #32378 from nextcloud/fix/psalm-userbackend
Fix psalm issues related to the user backend
Diffstat (limited to 'build')
-rw-r--r--build/psalm-baseline.xml56
1 files changed, 3 insertions, 53 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index fbcbe1ebb62..ae99d3e7e57 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -4157,28 +4157,11 @@
<FalsableReturnStatement occurrences="1">
<code>false</code>
</FalsableReturnStatement>
- <ImplicitToStringCast occurrences="1">
- <code>$query-&gt;func()-&gt;lower('displayname')</code>
- </ImplicitToStringCast>
</file>
<file src="lib/private/User/Manager.php">
- <ImplementedReturnTypeMismatch occurrences="1">
- <code>array|int</code>
- </ImplementedReturnTypeMismatch>
- <InvalidArgument occurrences="1">
- <code>$callback</code>
- </InvalidArgument>
- <InvalidNullableReturnType occurrences="1">
- <code>bool|IUser</code>
- </InvalidNullableReturnType>
- <NullableReturnStatement occurrences="2">
- <code>$this-&gt;createUserFromBackend($uid, $password, $backend)</code>
- <code>$this-&gt;createUserFromBackend($uid, $password, $backend)</code>
- </NullableReturnStatement>
- <UndefinedInterfaceMethod occurrences="5">
- <code>checkPassword</code>
- <code>checkPassword</code>
- <code>countUsers</code>
+ <ImplementedReturnTypeMismatch occurrences="1"/>
+ <InvalidArgument occurrences="1"/>
+ <UndefinedInterfaceMethod occurrences="2">
<code>createUser</code>
<code>getUsersForUserValueCaseInsensitive</code>
</UndefinedInterfaceMethod>
@@ -4190,23 +4173,13 @@
<InvalidArgument occurrences="1">
<code>IUser::class . '::firstLogin'</code>
</InvalidArgument>
- <InvalidScalarArgument occurrences="2">
- <code>$this-&gt;timeFactory-&gt;getTime()</code>
- <code>$this-&gt;timeFactory-&gt;getTime()</code>
- </InvalidScalarArgument>
<NoInterfaceProperties occurrences="2">
<code>$request-&gt;server</code>
<code>$request-&gt;server</code>
</NoInterfaceProperties>
- <NullableReturnStatement occurrences="1">
- <code>null</code>
- </NullableReturnStatement>
<TooManyArguments occurrences="1">
<code>dispatch</code>
</TooManyArguments>
- <UndefinedMethod occurrences="1">
- <code>getByEmail</code>
- </UndefinedMethod>
</file>
<file src="lib/private/User/User.php">
<InvalidArgument occurrences="5">
@@ -4216,22 +4189,6 @@
<code>IUser::class . '::preDelete'</code>
<code>IUser::class . '::preSetPassword'</code>
</InvalidArgument>
- <InvalidNullableReturnType occurrences="1">
- <code>getBackend</code>
- </InvalidNullableReturnType>
- <InvalidReturnStatement occurrences="1">
- <code>$image</code>
- </InvalidReturnStatement>
- <InvalidReturnType occurrences="1">
- <code>IImage|null</code>
- </InvalidReturnType>
- <InvalidScalarArgument occurrences="2">
- <code>$quota</code>
- <code>$this-&gt;lastLogin</code>
- </InvalidScalarArgument>
- <NullableReturnStatement occurrences="1">
- <code>$this-&gt;backend</code>
- </NullableReturnStatement>
<TooManyArguments occurrences="5">
<code>dispatch</code>
<code>dispatch</code>
@@ -4239,13 +4196,6 @@
<code>dispatch</code>
<code>dispatch</code>
</TooManyArguments>
- <UndefinedInterfaceMethod occurrences="5">
- <code>canChangeAvatar</code>
- <code>deleteUserAvatar</code>
- <code>getHome</code>
- <code>setDisplayName</code>
- <code>setPassword</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/legacy/OC_API.php">
<InvalidNullableReturnType occurrences="1">