From ae98cdde0c4ac0f49ddfdeef33ba8eb6b751b254 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 10 Sep 2017 15:14:33 -0700 Subject: [PATCH] ApiQuery: Fix type docs for $groups in ApiQueryBase::selectNamedDB() call chain Change-Id: Iaa2ed914347fc4a1b477406cc8b83d7f21adf1a7 --- includes/api/ApiQuery.php | 2 +- includes/api/ApiQueryBase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.20.1