r97783 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97782‎ | r97783 | r97784 >
Date:03:21, 22 September 2011
Author:aaron
Status:ok
Tags:
Comment:
Added array type hinting too getGroupPermissions()
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -3477,7 +3477,7 @@
34783478 *
34793479 * @return Array of Strings List of permission key names for given groups combined
34803480 */
3481 - public static function getGroupPermissions( $groups, $ns = null ) {
 3481+ public static function getGroupPermissions( array $groups, $ns = null ) {
34823482 global $wgGroupPermissions, $wgRevokePermissions;
34833483 $rights = array();
34843484

Status & tagging log