summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-11 00:20:15 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-11 00:21:25 +0200
commita07f6d46e331c52e902669c1f9987cfa7805b815 (patch)
treeb20d3f88a06a90086c522db82f0c668e09112929 /core/Controller
parentfd3c97b93b317cc1b0bfdb17f7b660dae865f25e (diff)
downloadnextcloud-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.php5
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());