diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index f9ae6bbee66d0..d787bfea4d40c 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -682,7 +682,7 @@ public function setUserEnabled(string $uid, bool $enabled, callable $queryDataba return $enabled; } - public function getDisabledUserList(int $offset = 0, ?int $limit = null): array { + public function getDisabledUserList(?int $limit = null, int $offset = 0): array { throw new \Exception('This is implemented directly in User_Proxy'); } } diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php index 919cddd99bef6..934bed7d45047 100644 --- a/apps/user_ldap/lib/User_Proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -463,7 +463,7 @@ public function setUserEnabled(string $uid, bool $enabled, callable $queryDataba return $this->handleRequest($uid, 'setUserEnabled', [$uid, $enabled, $queryDatabaseValue, $setDatabaseValue]); } - public function getDisabledUserList(int $offset = 0, ?int $limit = null): array { + public function getDisabledUserList(?int $limit = null, int $offset = 0): array { return array_map( fn (OfflineUser $user) => $user->getOCName(), array_slice( diff --git a/lib/public/User/Backend/IProvideEnabledStateBackend.php b/lib/public/User/Backend/IProvideEnabledStateBackend.php index d03beacd7b858..f12d99fd1a645 100644 --- a/lib/public/User/Backend/IProvideEnabledStateBackend.php +++ b/lib/public/User/Backend/IProvideEnabledStateBackend.php @@ -52,5 +52,5 @@ public function setUserEnabled(string $uid, bool $enabled, callable $queryDataba * * @return string[] */ - public function getDisabledUserList(int $offset = 0, ?int $limit = null): array; + public function getDisabledUserList(?int $limit = null, int $offset = 0): array; }