aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Group
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-09-05 12:08:10 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-09-05 16:56:48 +0200
commit35069ad86a96923b0e39c897bb839058de4b4b34 (patch)
treeb5be504cbd6ffa9d8eef910937dc11b620987d8e /lib/private/Group
parent2c8b415c55ead6a54989e74d9ff37e0418e6adb2 (diff)
downloadnextcloud-server-35069ad86a96923b0e39c897bb839058de4b4b34.tar.gz
nextcloud-server-35069ad86a96923b0e39c897bb839058de4b4b34.zip
Fix psalm spotted type errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Group')
-rw-r--r--lib/private/Group/Database.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index 4cfc3c1f45a..20e56a03d0a 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -359,11 +359,11 @@ class Database extends ABackend implements
->where($qb->expr()->in('gid', $qb->createNamedParameter($chunk, IQueryBuilder::PARAM_STR_ARRAY)))
->executeQuery();
while ($row = $result->fetch()) {
- $this->groupCache[$row['gid']] = [
- 'displayname' => $row['displayname'],
- 'gid' => $row['gid'],
+ $this->groupCache[(string)$row['gid']] = [
+ 'displayname' => (string)$row['displayname'],
+ 'gid' => (string)$row['gid'],
];
- $existingGroups[] = $gid;
+ $existingGroups[] = (string)$row['gid'];
}
$result->closeCursor();
}
@@ -553,10 +553,10 @@ class Database extends ABackend implements
$result = $query->executeQuery();
while ($row = $result->fetch()) {
- $details[$row['gid']] = ['displayName' => $row['displayname']];
- $this->groupCache[$row['gid']] = [
- 'displayname' => $row['displayname'],
- 'gid' => $row['gid'],
+ $details[(string)$row['gid']] = ['displayName' => (string)$row['displayname']];
+ $this->groupCache[(string)$row['gid']] = [
+ 'displayname' => (string)$row['displayname'],
+ 'gid' => (string)$row['gid'],
];
}
$result->closeCursor();