From: Daimona Eaytoy Date: Sun, 15 Sep 2019 08:54:13 +0000 (+0200) Subject: title: Improve docs of get*URL() X-Git-Tag: 1.34.0-rc.0~146^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=2a5b81bcbef40d6ffec9569e30a519eacbae73c3;p=lhc%2Fweb%2Fwiklou.git title: Improve docs of get*URL() These functions call fixUrlQueryArgs, which in turns uses wfArrayToCgi, which can handle array values. Hence, array[] is also valid. Replace string[] with array, as the values may also be integers. Change-Id: I5de4f8f32a47c3f41c990ffe2ebd091fc23d1a58 --- diff --git a/includes/Title.php b/includes/Title.php index bdff7a759f..f39379a904 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1986,7 +1986,7 @@ class Title implements LinkTarget, IDBAccessObject { * * @see self::getLocalURL for the arguments. * @see wfExpandUrl - * @param string|string[] $query + * @param string|array $query * @param string|string[]|bool $query2 * @param string|int|null $proto Protocol type to use in URL * @return string The URL @@ -2047,7 +2047,7 @@ class Title implements LinkTarget, IDBAccessObject { * valid to link, locally, to the current Title. * @see self::newFromText to produce a Title object. * - * @param string|string[] $query An optional query string, + * @param string|array $query An optional query string, * not used for interwiki links. Can be specified as an associative array as well, * e.g., [ 'action' => 'edit' ] (keys and values will be URL-escaped). * Some query patterns will trigger various shorturl path replacements. @@ -2182,7 +2182,7 @@ class Title implements LinkTarget, IDBAccessObject { * protocol-relative, the URL will be expanded to http:// * * @see self::getLocalURL for the arguments. - * @param string|string[] $query + * @param string|array $query * @param string|bool $query2 Deprecated * @return string The URL */ @@ -2205,7 +2205,7 @@ class Title implements LinkTarget, IDBAccessObject { * NOTE: Unlike getInternalURL(), the canonical URL includes the fragment * * @see self::getLocalURL for the arguments. - * @param string|string[] $query + * @param string|array $query * @param string|bool $query2 Deprecated * @return string The URL * @since 1.18