diff options
author | Robin Appelman <robin@icewind.nl> | 2023-05-12 15:25:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 15:25:32 +0200 |
commit | 1f4dd62b4e7455b9baa2a6b49cd0a74c21221fd7 (patch) | |
tree | 65ad281847d72cb3499e35b3710d394cde53666a /lib/public | |
parent | b83432f92fa62229d7b0534462679202bf14567e (diff) | |
parent | 4a864878593446133e7f135047ee7a7772561010 (diff) | |
download | nextcloud-server-1f4dd62b4e7455b9baa2a6b49cd0a74c21221fd7.tar.gz nextcloud-server-1f4dd62b4e7455b9baa2a6b49cd0a74c21221fd7.zip |
Merge pull request #36592 from nextcloud/groupmanager-search-typing
fix default values and type hints for GroupManager::search
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/GroupInterface.php | 2 | ||||
-rw-r--r-- | lib/public/IGroupManager.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/GroupInterface.php b/lib/public/GroupInterface.php index 56863100c05..a18d38df002 100644 --- a/lib/public/GroupInterface.php +++ b/lib/public/GroupInterface.php @@ -95,7 +95,7 @@ interface GroupInterface { * * Returns a list with all groups */ - public function getGroups($search = '', $limit = -1, $offset = 0); + public function getGroups(string $search = '', int $limit = -1, int $offset = 0); /** * check if a group exists diff --git a/lib/public/IGroupManager.php b/lib/public/IGroupManager.php index 2e2685eeeb4..a6655292398 100644 --- a/lib/public/IGroupManager.php +++ b/lib/public/IGroupManager.php @@ -96,12 +96,12 @@ interface IGroupManager { /** * @param string $search - * @param int $limit - * @param int $offset + * @param ?int $limit + * @param ?int $offset * @return \OCP\IGroup[] * @since 8.0.0 */ - public function search($search, $limit = null, $offset = null); + public function search(string $search, ?int $limit = null, ?int $offset = 0); /** * @param \OCP\IUser|null $user |