jenkins-bot has submitted this change and it was merged.

Change subject: Add type hints
......................................................................


Add type hints

Change-Id: Id735f56d46ab5f3eeac452cfe53b486061e34cf8
---
M InviteSignupHooks.php
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/InviteSignupHooks.php b/InviteSignupHooks.php
index 42d1468..4c120e9 100644
--- a/InviteSignupHooks.php
+++ b/InviteSignupHooks.php
@@ -1,7 +1,9 @@
 <?php
 
 class InviteSignupHooks {
-       public static function onBeforeInitialize( $title, &$unused, &$output, 
&$user, $request ) {
+       public static function onBeforeInitialize( Title $title, &$unused, 
&$output, &$user,
+               WebRequest $request
+       ) {
                if ( !$title->isSpecialPage() ) {
                        return true;
                }
@@ -40,7 +42,7 @@
                $template->data['useemail'] = false;
        }
 
-       public static function onAddNewAccount( $user ) {
+       public static function onAddNewAccount( User $user ) {
                global $wgInviteSignupHash;
                if ( $wgInviteSignupHash === null ) {
                        return true;

-- 
To view, visit https://gerrit.wikimedia.org/r/275458
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id735f56d46ab5f3eeac452cfe53b486061e34cf8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/InviteSignup
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to