Browse Source

Use proper types

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v14.0.0beta1
Roeland Jago Douma 6 years ago
parent
commit
a07f6d46e3
No account linked to committer's email address
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      core/Controller/LoginController.php

+ 1
- 4
core/Controller/LoginController.php View File

@@ -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());

Loading…
Cancel
Save