summaryrefslogtreecommitdiffstats
path: root/lib/private/User/Database.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-10-25 10:20:09 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-10-25 10:20:09 +0200
commit556e3c84e6c712e2974d6d35edb6abbdfe78dd9b (patch)
tree165617b1e2b83ee8d4a98ea4be2a70431f321472 /lib/private/User/Database.php
parent4130a4cbd8e5bb4506ac30a19a91b088aa35dd24 (diff)
downloadnextcloud-server-556e3c84e6c712e2974d6d35edb6abbdfe78dd9b.tar.gz
nextcloud-server-556e3c84e6c712e2974d6d35edb6abbdfe78dd9b.zip
Fix return type for countUsers method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/User/Database.php')
-rw-r--r--lib/private/User/Database.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index f106c2e8b6d..8bbbccd4540 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -65,14 +65,14 @@ use OCP\User\Backend\ISetPasswordBackend;
*/
class Database extends ABackend implements
ICreateUserBackend,
- ISetPasswordBackend,
- ISetDisplayNameBackend,
- IGetDisplayNameBackend,
- ICheckPasswordBackend,
- IGetHomeBackend,
- ICountUsersBackend,
- ISearchKnownUsersBackend,
- IGetRealUIDBackend {
+ ISetPasswordBackend,
+ ISetDisplayNameBackend,
+ IGetDisplayNameBackend,
+ ICheckPasswordBackend,
+ IGetHomeBackend,
+ ICountUsersBackend,
+ ISearchKnownUsersBackend,
+ IGetRealUIDBackend {
/** @var CappedMemoryCache */
private $cache;
@@ -456,7 +456,7 @@ class Database extends ABackend implements
/**
* counts the users in the database
*
- * @return int|bool
+ * @return int|false
*/
public function countUsers() {
$this->fixDI();
@@ -464,7 +464,7 @@ class Database extends ABackend implements
$query = $this->dbConn->getQueryBuilder();
$query->select($query->func()->count('uid'))
->from($this->table);
- $result = $query->execute();
+ $result = $query->executeQuery();
return $result->fetchOne();
}