dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d691704
)
Remove unused use in anonymous function
author
Jakub Vrana
<jakub@vrana.cz>
Sat, 1 Dec 2018 09:16:46 +0000
(10:16 +0100)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/includes/specialpage/AuthManagerSpecialPage.php
b/includes/specialpage/AuthManagerSpecialPage.php
index
1476e85
..
8466399
100644
(file)
--- 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 );
} );
}