Document that wfParseUrl() can also return false
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 17 Aug 2016 03:48:02 +0000 (20:48 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 17 Aug 2016 03:48:02 +0000 (20:48 -0700)
Change-Id: I6927ee13c35ecccc45c392b77d426380cc7a5c53

includes/GlobalFunctions.php

index 7117f4c..0d66908 100644 (file)
@@ -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