Skip to content

Commit dc76815

Browse files
Merge pull request #55566 from nextcloud/fix/igroupmanager/get-user-group-ids-return-type
2 parents 40286b2 + 3c27522 commit dc76815

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

lib/private/Group/Manager.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,6 @@ public function isInGroup($userId, $group) {
351351
return in_array($group, $this->getUserIdGroupIds($userId));
352352
}
353353

354-
/**
355-
* get a list of group ids for a user
356-
*
357-
* @param IUser $user
358-
* @return list<string> with group ids
359-
*/
360354
public function getUserGroupIds(IUser $user): array {
361355
return $this->getUserIdGroupIds($user->getUID());
362356
}

lib/public/IGroupManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getUserGroups(?IUser $user = null);
8989

9090
/**
9191
* @param \OCP\IUser $user
92-
* @return string[] with group names
92+
* @return list<string> with group ids
9393
* @since 8.0.0
9494
*/
9595
public function getUserGroupIds(IUser $user): array;

0 commit comments

Comments
 (0)