From: Kunal Mehta Date: Sun, 10 Sep 2017 22:14:33 +0000 (-0700) Subject: ApiQuery: Fix type docs for $groups in ApiQueryBase::selectNamedDB() call chain X-Git-Tag: 1.31.0-rc.0~2154 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=ae98cdde0c4ac0f49ddfdeef33ba8eb6b751b254 ApiQuery: Fix type docs for $groups in ApiQueryBase::selectNamedDB() call chain Change-Id: Iaa2ed914347fc4a1b477406cc8b83d7f21adf1a7 --- diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 987bb99289..44a46b8d16 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -169,7 +169,7 @@ class ApiQuery extends ApiBase { * as the first, regardless of the values of $db and $groups * @param string $name Name to assign to the database connection * @param int $db One of the DB_* constants - * @param array $groups Query groups + * @param string|string[] $groups Query groups * @return IDatabase */ public function getNamedDB( $name, $db, $groups ) { diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 051d346f1c..6987dfb13f 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -119,7 +119,7 @@ abstract class ApiQueryBase extends ApiBase { * See ApiQuery::getNamedDB() for more information * @param string $name Name to assign to the database connection * @param int $db One of the DB_* constants - * @param array $groups Query groups + * @param string|string[] $groups Query groups * @return IDatabase */ public function selectNamedDB( $name, $db, $groups ) {