Found by PHPStan.
Change-Id: Ic00d2b7b42c7c75b673601eabe947b0f380a3399
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 );