diff --git a/settings/Controller/ChangePasswordController.php b/settings/Controller/ChangePasswordController.php index 31ff8904ce..208178d567 100644 --- a/settings/Controller/ChangePasswordController.php +++ b/settings/Controller/ChangePasswordController.php @@ -1,4 +1,5 @@ userManager->checkPassword($this->userId, $oldpassword); if ($user === false) { @@ -148,7 +137,7 @@ class ChangePasswordController extends Controller { * * @return JSONResponse */ - public function changeUserPassword($username = null, $password = null, $recoveryPassword = null) { + public function changeUserPassword(string $username = null, string $password = null, string $recoveryPassword = null): JSONResponse { if ($username === null) { return new JSONResponse([ 'status' => 'error',