From: John Molakvoæ (skjnldsv) Date: Thu, 28 Nov 2019 08:33:26 +0000 (+0100) Subject: Fix provisioning_api getUsers types X-Git-Tag: v18.0.0beta1~49^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f675e61c26819fea20bb6bda923cb3ddcad4adad;p=nextcloud-server.git Fix provisioning_api getUsers types Signed-off-by: John Molakvoæ (skjnldsv) --- diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index ced4f72178c..1e33dfea5bd 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -126,7 +126,7 @@ class UsersController extends AUserData { * @param int $offset * @return DataResponse */ - public function getUsers(string $search = '', $limit = null, $offset = 0): DataResponse { + public function getUsers(string $search = '', int $limit = null, int $offset = 0): DataResponse { $user = $this->userSession->getUser(); $users = []; @@ -159,7 +159,7 @@ class UsersController extends AUserData { * * returns a list of users and their data */ - public function getUsersDetails(string $search = '', $limit = null, $offset = 0): DataResponse { + public function getUsersDetails(string $search = '', int $limit = null, int $offset = 0): DataResponse { $currentUser = $this->userSession->getUser(); $users = [];