Merge pull request #18142 from nextcloud/fix/provisioning_api/users-typing

Fix provisioning_api getUsers types
This commit is contained in:
Roeland Jago Douma 2019-11-29 09:04:49 +01:00 committed by GitHub
commit b552da515e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 = [];