Skip to content

Commit 8cfc2e0

Browse files
committed
fix(groups): Fix more psalm issues
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 1a9e5f2 commit 8cfc2e0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

build/psalm-baseline.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3931,7 +3931,6 @@
39313931
</LessSpecificReturnStatement>
39323932
<MoreSpecificReturnType>
39333933
<code><![CDATA[\OC\Group\Group[]]]></code>
3934-
<code><![CDATA[\OC\Group\Group[]]]></code>
39353934
</MoreSpecificReturnType>
39363935
<UndefinedInterfaceMethod>
39373936
<code><![CDATA[createGroup]]></code>

lib/private/Group/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public function search(string $search, ?int $limit = null, ?int $offset = 0) {
287287

288288
/**
289289
* @param IUser|null $user
290-
* @return \OC\Group\Group[]
290+
* @return array<string, \OCP\IGroup>
291291
*/
292292
public function getUserGroups(?IUser $user = null) {
293293
if (!$user instanceof IUser) {
@@ -298,7 +298,7 @@ public function getUserGroups(?IUser $user = null) {
298298

299299
/**
300300
* @param string $uid the user id
301-
* @return \OC\Group\Group[]
301+
* @return array<string, \OCP\IGroup>
302302
*/
303303
public function getUserIdGroups(string $uid): array {
304304
$groupIds = $this->getUserIdGroupIds($uid);

0 commit comments

Comments
 (0)