jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Legoktm: Looks good to me, approved
Jforrester: Looks good to me, but someone else must approve
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I29a522f5a37d7619582c22f36f246a8d1e951731
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits