From 1b198a836deeb54857caccb7b11cd3f6a17d52a2 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 14 Feb 2016 00:12:31 -0800 Subject: [PATCH] Document that Http::get() and Http::post() can return false Change-Id: I6d48ac011ee221050c7b8a05103d028fe2bed66a --- includes/HttpFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 032710c1e7..973a28f2e9 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -95,7 +95,7 @@ class Http { * @param string $url * @param array $options * @param string $caller The method making this request, for profiling - * @return string + * @return string|bool false on error */ public static function get( $url, $options = array(), $caller = __METHOD__ ) { $args = func_get_args(); @@ -118,7 +118,7 @@ class Http { * @param string $url * @param array $options * @param string $caller The method making this request, for profiling - * @return string + * @return string|bool false on error */ public static function post( $url, $options = array(), $caller = __METHOD__ ) { return Http::request( 'POST', $url, $options, $caller ); -- 2.20.1