X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FUsersPager.php;h=bc24d26a1663821bdb06b7d2e9f499c16efe9458;hp=d17332f6e75bf31fb90f712fc901a39770dc658e;hb=74d04edec385aa86ee01943b9a27475d79f74e78;hpb=b37772a99128afe1699a60718ebe2a6f8469aa8f diff --git a/includes/specials/pagers/UsersPager.php b/includes/specials/pagers/UsersPager.php index d17332f6e7..bc24d26a16 100644 --- a/includes/specials/pagers/UsersPager.php +++ b/includes/specials/pagers/UsersPager.php @@ -38,9 +38,9 @@ class UsersPager extends AlphabeticPager { protected $userGroupCache; /** - * @param IContextSource $context - * @param array $par (Default null) - * @param bool $including Whether this page is being transcluded in + * @param IContextSource|null $context + * @param array|null $par (Default null) + * @param bool|null $including Whether this page is being transcluded in * another page */ function __construct( IContextSource $context = null, $par = null, $including = null ) { @@ -333,7 +333,7 @@ class UsersPager extends AlphabeticPager { Hooks::run( 'SpecialListusersHeaderForm', [ $this, &$beforeSubmitButtonHookOut ] ); if ( $beforeSubmitButtonHookOut !== '' ) { - $formDescriptior[ 'beforeSubmitButtonHookOut' ] = [ + $formDescriptor[ 'beforeSubmitButtonHookOut' ] = [ 'class' => HTMLInfoField::class, 'raw' => true, 'default' => $beforeSubmitButtonHookOut @@ -349,7 +349,7 @@ class UsersPager extends AlphabeticPager { Hooks::run( 'SpecialListusersHeader', [ $this, &$beforeClosingFieldsetHookOut ] ); if ( $beforeClosingFieldsetHookOut !== '' ) { - $formDescriptior[ 'beforeClosingFieldsetHookOut' ] = [ + $formDescriptor[ 'beforeClosingFieldsetHookOut' ] = [ 'class' => HTMLInfoField::class, 'raw' => true, 'default' => $beforeClosingFieldsetHookOut @@ -411,7 +411,7 @@ class UsersPager extends AlphabeticPager { $user = User::newFromId( $uid ); return $user->getGroupMemberships(); } else { - return isset( $cache[$uid] ) ? $cache[$uid] : []; + return $cache[$uid] ?? []; } }