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

Change-Id: Ic00d2b7b42c7c75b673601eabe947b0f380a3399

includes/api/ApiQueryBacklinks.php

index 35cb83a..f4e7463 100644 (file)
@@ -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 );