Fix phpdoc since $proto can be int
authorStanislav Malyshev <smalyshev@gmail.com>
Thu, 18 Jan 2018 21:05:42 +0000 (13:05 -0800)
committerStanislav Malyshev <smalyshev@gmail.com>
Thu, 18 Jan 2018 21:17:12 +0000 (13:17 -0800)
In fact, some of the PROTO_* constants are ints,
some strings and one is null (PROTO_CURRENT).

Change-Id: I69c45ab87360ed1ab54b53b7e9e959ea566b4cba

includes/GlobalFunctions.php
includes/Title.php

index b0057eb..b181628 100644 (file)
@@ -582,7 +582,7 @@ function wfAppendQuery( $url, $query ) {
  * like "subdir/foo.html", etc.
  *
  * @param string $url Either fully-qualified or a local path + query
- * @param string $defaultProto One of the PROTO_* constants. Determines the
+ * @param string|int|null $defaultProto One of the PROTO_* constants. Determines the
  *    protocol to use if $url or $wgServer is protocol-relative
  * @return string|false Fully-qualified URL, current-path-relative URL or false if
  *    no valid URL can be constructed
index 3de85e1..9aad401 100644 (file)
@@ -1769,7 +1769,7 @@ class Title implements LinkTarget {
         * @see wfExpandUrl
         * @param string|string[] $query
         * @param string|string[]|bool $query2
-        * @param string $proto Protocol type to use in URL
+        * @param string|int|null $proto Protocol type to use in URL
         * @return string The URL
         */
        public function getFullURL( $query = '', $query2 = false, $proto = PROTO_RELATIVE ) {