From: Jakub Vrana Date: Sat, 1 Dec 2018 09:12:32 +0000 (+0100) Subject: Remove unused use in anonymous function X-Git-Tag: 1.34.0-rc.0~3387^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=d441a126e63036e94cd2184d2ef6f3aa3325181b;p=lhc%2Fweb%2Fwiklou.git Remove unused use in anonymous function Found by PHPStan. Change-Id: Ic00d2b7b42c7c75b673601eabe947b0f380a3399 --- diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 35cb83ace3..f4e7463e22 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -418,7 +418,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { if ( is_null( $resultPageSet ) ) { // Try to add the result data in one go and pray that it fits $code = $this->bl_code; - $data = array_map( function ( $arr ) use ( $result, $code ) { + $data = array_map( function ( $arr ) use ( $code ) { if ( isset( $arr['redirlinks'] ) ) { $arr['redirlinks'] = array_values( $arr['redirlinks'] ); ApiResult::setIndexedTagName( $arr['redirlinks'], $code );