From: Kunal Mehta Date: Wed, 17 Aug 2016 03:48:02 +0000 (-0700) Subject: Document that wfParseUrl() can also return false X-Git-Tag: 1.31.0-rc.0~6030 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=b8a41ea451aa22a5d34e882349992bddfc69f8ba;p=lhc%2Fweb%2Fwiklou.git Document that wfParseUrl() can also return false Change-Id: I6927ee13c35ecccc45c392b77d426380cc7a5c53 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 7117f4c29a..0d669083b9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -811,7 +811,7 @@ function wfUrlProtocolsWithoutProtRel() { * 3) Adds a "delimiter" element to the array, either '://', ':' or '//' (see (2)). * * @param string $url A URL to parse - * @return string[] Bits of the URL in an associative array, per PHP docs + * @return string[]|bool Bits of the URL in an associative array, per PHP docs, false on failure */ function wfParseUrl( $url ) { global $wgUrlProtocols; // Allow all protocols defined in DefaultSettings/LocalSettings.php