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

Change subject: Update type hints
......................................................................


Update type hints

Change-Id: I743be1810caf1394c9bd273e43a38048db11760e
---
M CachedStat.php
M ProjectHandler.php
2 files changed, 7 insertions(+), 2 deletions(-)

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



diff --git a/CachedStat.php b/CachedStat.php
index aacd0ae..f19cab6 100644
--- a/CachedStat.php
+++ b/CachedStat.php
@@ -107,7 +107,12 @@
                return new self( Title::newMainPage(), [ 'obj' => $stat, 'key' 
=> $stat->getKey() ] );
        }
 
-       public function __construct( $title, $params = [], $id = 0 ) {
+       /**
+        * @param Title $title
+        * @param array $params
+        * @param int $id
+        */
+       public function __construct( $title, array $params, $id = 0 ) {
                parent::__construct( __CLASS__, $title, $params, $id );
                $this->params = $params;
                $this->removeDuplicates = true;
diff --git a/ProjectHandler.php b/ProjectHandler.php
index fb81d99..e53523b 100644
--- a/ProjectHandler.php
+++ b/ProjectHandler.php
@@ -57,7 +57,7 @@
                        }
                }
 
-               usort( $groups, function ( $a, $b ) use ( $stats ) {
+               usort( $groups, function ( MessageGroup $a, MessageGroup $b ) 
use ( $stats ) {
                        $aStats = $stats[$a->getId()];
                        $bStats = $stats[$b->getId()];
 

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

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

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

Reply via email to