From: Kunal Mehta Date: Sun, 14 Feb 2016 08:12:31 +0000 (-0800) Subject: Document that Http::get() and Http::post() can return false X-Git-Tag: 1.31.0-rc.0~7958 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=1b198a836deeb54857caccb7b11cd3f6a17d52a2;p=lhc%2Fweb%2Fwiklou.git Document that Http::get() and Http::post() can return false Change-Id: I6d48ac011ee221050c7b8a05103d028fe2bed66a --- 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 );