]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added type-hint for RedirectToLogin hooks. Please note that User $user=null
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:35:57 +0000 (15:35 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:35:57 +0000 (15:35 +0100)
must beused as one call sets null for $user parameter.

Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/OpenID/OpenIDPlugin.php

index a433d993fbb7ed10a34bac7bceb2cdb5f9a4d13f..b5b6dc777d4d7b8530cc93d24ae810547bd49b9c 100644 (file)
@@ -412,7 +412,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);