X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FThrottlePreAuthenticationProvider.php;h=83d67eabf665d133db14ce47d05c81fb31914188;hb=d503ac7c9433a36358b1db27c6365167ea869832;hp=ae0bc6bb7763fd4fa43dc9a3974d5f36d42c953c;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/ThrottlePreAuthenticationProvider.php b/includes/auth/ThrottlePreAuthenticationProvider.php index ae0bc6bb77..83d67eabf6 100644 --- a/includes/auth/ThrottlePreAuthenticationProvider.php +++ b/includes/auth/ThrottlePreAuthenticationProvider.php @@ -58,8 +58,7 @@ class ThrottlePreAuthenticationProvider extends AbstractPreAuthenticationProvide public function __construct( $params = [] ) { $this->throttleSettings = array_intersect_key( $params, [ 'accountCreationThrottle' => true, 'passwordAttemptThrottle' => true ] ); - $this->cache = isset( $params['cache'] ) ? $params['cache'] : - \ObjectCache::getLocalClusterInstance(); + $this->cache = $params['cache'] ?? \ObjectCache::getLocalClusterInstance(); } public function setConfig( Config $config ) {