diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-11 00:20:15 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-11 00:21:25 +0200 |
commit | a07f6d46e331c52e902669c1f9987cfa7805b815 (patch) | |
tree | b20d3f88a06a90086c522db82f0c668e09112929 /core/Controller | |
parent | fd3c97b93b317cc1b0bfdb17f7b660dae865f25e (diff) | |
download | nextcloud-server-a07f6d46e331c52e902669c1f9987cfa7805b815.tar.gz nextcloud-server-a07f6d46e331c52e902669c1f9987cfa7805b815.zip |
Use proper types
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/LoginController.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index 0f02be4bfda..2235439d956 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -141,10 +141,7 @@ class LoginController extends Controller { * * @return TemplateResponse|RedirectResponse */ - public function showLoginForm($user, $redirect_url) { - if (!is_string($user)) { - throw new \InvalidArgumentException('User needs to be string'); - } + public function showLoginForm(string $user = null, string $redirect_url = null): Http\Response { if ($this->userSession->isLoggedIn()) { return new RedirectResponse(OC_Util::getDefaultPageUrl()); |