aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/KnownUser
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-11-07 13:40:30 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-01-02 15:02:28 +0100
commita372564850cb2f8813c4c3cca67bd1b6cfcdb882 (patch)
treefc879b783dae0d038c60111b7adbb3b0749c6d09 /lib/private/KnownUser
parente4e20bf40ad8ca139655b36a6efa2b1710ae50f0 (diff)
downloadnextcloud-server-a372564850cb2f8813c4c3cca67bd1b6cfcdb882.tar.gz
nextcloud-server-a372564850cb2f8813c4c3cca67bd1b6cfcdb882.zip
Fix psalm spotted errors with new requirements
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/KnownUser')
-rw-r--r--lib/private/KnownUser/KnownUserMapper.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/KnownUser/KnownUserMapper.php b/lib/private/KnownUser/KnownUserMapper.php
index 864ece36345..ce7dc9ead63 100644
--- a/lib/private/KnownUser/KnownUserMapper.php
+++ b/lib/private/KnownUser/KnownUserMapper.php
@@ -32,7 +32,6 @@ use OCP\IDBConnection;
* @method KnownUser mapRowToEntity(array $row)
*/
class KnownUserMapper extends QBMapper {
-
/**
* @param IDBConnection $db
*/
@@ -49,7 +48,7 @@ class KnownUserMapper extends QBMapper {
$query->delete($this->getTableName())
->where($query->expr()->eq('known_to', $query->createNamedParameter($knownTo)));
- return (int) $query->execute();
+ return $query->executeStatement();
}
/**
@@ -61,7 +60,7 @@ class KnownUserMapper extends QBMapper {
$query->delete($this->getTableName())
->where($query->expr()->eq('known_user', $query->createNamedParameter($knownUser)));
- return (int) $query->execute();
+ return $query->executeStatement();
}
/**