Ladsgroup has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/273001

Change subject: Explicitly cast user count as int
......................................................................

Explicitly cast user count as int

Bug: T127982
Change-Id: I29a522f5a37d7619582c22f36f246a8d1e951731
---
M includes/ApiListBetaFeatures.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BetaFeatures 
refs/changes/01/273001/1

diff --git a/includes/ApiListBetaFeatures.php b/includes/ApiListBetaFeatures.php
index a5349f9..6046ce1 100644
--- a/includes/ApiListBetaFeatures.php
+++ b/includes/ApiListBetaFeatures.php
@@ -47,7 +47,7 @@
                                $key
                        );
                        if ( isset( $counts[$key] ) ) {
-                               $count = $counts[$key];
+                               $count = (int)$counts[$key];
                        } else {
                                $count = 0;
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29a522f5a37d7619582c22f36f246a8d1e951731
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>

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

Reply via email to