Skip to content
Snippets Groups Projects
Unverified Commit a07f6d46 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Use proper types

parent fd3c97b9
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment