From b8a41ea451aa22a5d34e882349992bddfc69f8ba Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 16 Aug 2016 20:48:02 -0700 Subject: [PATCH] Document that wfParseUrl() can also return false Change-Id: I6927ee13c35ecccc45c392b77d426380cc7a5c53 --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1