summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-11-29 09:04:49 +0100
committerGitHub <noreply@github.com>2019-11-29 09:04:49 +0100
commitb552da515ef8ebf7418e7088f9650312c55d24e4 (patch)
tree0436f657880b77515b3ba6a8b87232caa36b50fe
parent69fad0e252cdf4663b334b81f505e278f853e61b (diff)
parentf675e61c26819fea20bb6bda923cb3ddcad4adad (diff)
downloadnextcloud-server-b552da515ef8ebf7418e7088f9650312c55d24e4.tar.gz
nextcloud-server-b552da515ef8ebf7418e7088f9650312c55d24e4.zip
Merge pull request #18142 from nextcloud/fix/provisioning_api/users-typing
Fix provisioning_api getUsers types
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php4
1 files 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 = [];