From f675e61c26819fea20bb6bda923cb3ddcad4adad Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Thu, 28 Nov 2019 09:33:26 +0100 Subject: [PATCH] Fix provisioning_api getUsers types MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/provisioning_api/lib/Controller/UsersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []; -- 2.39.5