From 703ed6f9cdc1339b8a57e248bfdf9145016653d5 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 1 Dec 2018 10:16:46 +0100 Subject: [PATCH] Remove unused use in anonymous function Found by PHPStan. Change-Id: I50d27a50806048697dcac8e24712a10a6c7e7c16 --- includes/specialpage/AuthManagerSpecialPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } ); } -- 2.20.1