Change array type on ApiQueryBase::addTables
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 7 Jun 2019 15:19:48 +0000 (17:19 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 7 Jun 2019 15:19:48 +0000 (17:19 +0200)
commit7cc76abc3621fe8aaac0c76cc5608efcb79cbc56
tree8c647705326764a72ac2f89aeb26ad249e9c3dc9
parent44b524827e3004d4f2fbcb19c194c702c651d1f2
Change array type on ApiQueryBase::addTables

This function results in passing its value to IDatabase::select as first
parameter $table.
The first parameter is documented as string|array, because it can take
more complex arrays:
 * Joins using parentheses for grouping (since MediaWiki 1.31) may be
 * constructed using nested arrays. For example,
 *
 *    [ 'tableA', 'nestedB' => [ 'tableB', 'b2' => 'tableB2' ] ]

Update the type to allow also passing such complex arrays to this
function
ApiQueryBase::showHiddenUsersAddBlockInfo() is using this format

Change-Id: I8038243545bc1c79a1106ccc3bec7738e63c2e2e
includes/api/ApiQueryBase.php