From: Jakub Vrana Date: Sat, 1 Dec 2018 09:16:46 +0000 (+0100) Subject: Remove unused use in anonymous function X-Git-Tag: 1.34.0-rc.0~3390^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=703ed6f9cdc1339b8a57e248bfdf9145016653d5;p=lhc%2Fweb%2Fwiklou.git Remove unused use in anonymous function Found by PHPStan. Change-Id: I50d27a50806048697dcac8e24712a10a6c7e7c16 --- diff --git a/includes/specialpage/AuthManagerSpecialPage.php b/includes/specialpage/AuthManagerSpecialPage.php index 1476e85eb8..8466399ee0 100644 --- a/includes/specialpage/AuthManagerSpecialPage.php +++ b/includes/specialpage/AuthManagerSpecialPage.php @@ -254,7 +254,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage { $allReqs = AuthManager::singleton()->getAuthenticationRequests( $this->authAction, $this->getUser() ); - $this->authRequests = array_filter( $allReqs, function ( $req ) use ( $subPage ) { + $this->authRequests = array_filter( $allReqs, function ( $req ) { return !in_array( get_class( $req ), $this->getRequestBlacklist(), true ); } ); }