diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-23 11:41:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 11:41:21 +0200 |
commit | 8d599c341023c5fe850da9bdbc3807a277a61151 (patch) | |
tree | bed44e448d398db054b4a6e8ed1a6102ef49d288 /build | |
parent | 384efc8958ab9bf1738e4fd5925c8b3e451c3f0f (diff) | |
parent | 9ec0cb0a90ecdc7f4181ce8399bfe0c3a35842a2 (diff) | |
download | nextcloud-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.xml | 56 |
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->func()->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->createUserFromBackend($uid, $password, $backend)</code> - <code>$this->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->timeFactory->getTime()</code> - <code>$this->timeFactory->getTime()</code> - </InvalidScalarArgument> <NoInterfaceProperties occurrences="2"> <code>$request->server</code> <code>$request->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->lastLogin</code> - </InvalidScalarArgument> - <NullableReturnStatement occurrences="1"> - <code>$this->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"> |