From 99a752922f2241fd4c7477fcf00a68e3ead52461 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 20 Oct 2022 12:01:19 +0200 Subject: [PATCH] Fix psalm Signed-off-by: Carl Schwan --- apps/user_ldap/lib/Group_LDAP.php | 5 ++++- build/psalm-baseline.xml | 12 +----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index 723b3d856ad..81cb30dd25b 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -57,7 +57,7 @@ class Group_LDAP extends BackendUtility implements GroupInterface, IGroupLDAP, I /** @var CappedMemoryCache $cachedGroupMembers array of users with gid as key */ protected CappedMemoryCache $cachedGroupMembers; - /** @var CappedMemoryCache $cachedGroupsByMember array of groups with uid as key */ + /** @var CappedMemoryCache $cachedGroupsByMember array of groups with uid as key */ protected CappedMemoryCache $cachedGroupsByMember; /** @var CappedMemoryCache $cachedNestedGroups array of groups with gid (DN) as key */ protected CappedMemoryCache $cachedNestedGroups; @@ -1129,6 +1129,9 @@ class Group_LDAP extends BackendUtility implements GroupInterface, IGroupLDAP, I } /** + * @template T + * @param array $listOfGroups + * @return array * @throws ServerNotAvailableException * @throws Exception */ diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index dc2b8a8f10a..e672dee4c0e 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1628,20 +1628,10 @@ - - $groupName - - - bool - - + $groupID $groupID - - is_array($groupDNs) - is_array($list) -