ApiQuery: Fix type docs for $groups in ApiQueryBase::selectNamedDB() call chain
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 10 Sep 2017 22:14:33 +0000 (15:14 -0700)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 11 Sep 2017 17:46:24 +0000 (17:46 +0000)
Change-Id: Iaa2ed914347fc4a1b477406cc8b83d7f21adf1a7

includes/api/ApiQuery.php
includes/api/ApiQueryBase.php

index 987bb99..44a46b8 100644 (file)
@@ -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
         * 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 ) {
         * @return IDatabase
         */
        public function getNamedDB( $name, $db, $groups ) {
index 051d346..6987dfb 100644 (file)
@@ -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
         * 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 ) {
         * @return IDatabase
         */
        public function selectNamedDB( $name, $db, $groups ) {