Remove unused use in anonymous function
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 09:16:46 +0000 (10:16 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 09:16:46 +0000 (10:16 +0100)
Found by PHPStan.

Change-Id: I50d27a50806048697dcac8e24712a10a6c7e7c16

includes/specialpage/AuthManagerSpecialPage.php

index 1476e85..8466399 100644 (file)
@@ -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 );
                } );
        }