From d441a126e63036e94cd2184d2ef6f3aa3325181b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 1 Dec 2018 10:12:32 +0100 Subject: [PATCH] Remove unused use in anonymous function Found by PHPStan. Change-Id: Ic00d2b7b42c7c75b673601eabe947b0f380a3399 --- includes/api/ApiQueryBacklinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1