Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Implement new interface instead of deprecated one in Database ba…
…ckend

Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Jan 14, 2025
commit c3228ee70984633ee149ad011d937e9f9015bc8d
8 changes: 3 additions & 5 deletions lib/private/User/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
use OCP\Security\IHasher;
use OCP\User\Backend\ABackend;
use OCP\User\Backend\ICheckPasswordBackend;
use OCP\User\Backend\ICountUsersBackend;
use OCP\User\Backend\ICreateUserBackend;
use OCP\User\Backend\IGetDisplayNameBackend;
use OCP\User\Backend\IGetHomeBackend;
use OCP\User\Backend\IGetRealUIDBackend;
use OCP\User\Backend\ILimitAwareCountUsersBackend;
use OCP\User\Backend\IPasswordHashBackend;
use OCP\User\Backend\ISearchKnownUsersBackend;
use OCP\User\Backend\ISetDisplayNameBackend;
Expand All @@ -37,7 +37,7 @@ class Database extends ABackend implements
IGetDisplayNameBackend,
ICheckPasswordBackend,
IGetHomeBackend,
ICountUsersBackend,
ILimitAwareCountUsersBackend,
ISearchKnownUsersBackend,
IGetRealUIDBackend,
IPasswordHashBackend {
Expand Down Expand Up @@ -463,10 +463,8 @@ public function hasUserListings() {

/**
* counts the users in the database
*
* @return int|false
*/
public function countUsers() {
public function countUsers(int $limit = 0): int|false {
$this->fixDI();

$query = $this->dbConn->getQueryBuilder();
Expand Down
Loading