From: Roland Haeder Date: Mon, 25 Jan 2016 14:35:57 +0000 (+0100) Subject: Added type-hint for RedirectToLogin hooks. Please note that User $user=null X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0022ba44e604a8c8fead7de6606058774e9c6b80;p=quix0rs-gnu-social.git Added type-hint for RedirectToLogin hooks. Please note that User $user=null must beused as one call sets null for $user parameter. Signed-off-by: Roland Haeder --- diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index fdbc22f903..864ff5901e 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -393,7 +393,7 @@ class OpenIDPlugin extends Plugin * * @return boolean whether to continue */ - function onRedirectToLogin($action, $user) + function onRedirectToLogin(Action $action, User $user=null) { if (common_config('site', 'openidonly') || (!empty($user) && User_openid::hasOpenID($user->id))) { common_redirect(common_local_url('openidlogin'), 303);