]> 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 Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:21:27 +0000 (00:21 +0200)
must beused as one call sets null for $user parameter.

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

index fdbc22f90341456897cd22d925010af2e06ab942..864ff5901ebfbac2ec8311abcdb8485022ea0690 100644 (file)
@@ -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);