From ed4233701be7ea71f2f4648495b19eb748eb534c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no> Date: Thu, 30 Mar 2017 09:31:16 +0200 Subject: [PATCH] Clarify the return types of SimpleSAML\Utils\HTTP::fetch(). --- lib/SimpleSAML/Utils/HTTP.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php index 1acdea672..a254e1ed7 100644 --- a/lib/SimpleSAML/Utils/HTTP.php +++ b/lib/SimpleSAML/Utils/HTTP.php @@ -374,7 +374,8 @@ class HTTP * @param array $context Extra context options. This parameter is optional. * @param boolean $getHeaders Whether to also return response headers. Optional. * - * @return mixed array if $getHeaders is set, string otherwise + * @return string|array An array if $getHeaders is set, containing the data and the headers respectively; string + * otherwise. * @throws \InvalidArgumentException If the input parameters are invalid. * @throws \SimpleSAML_Error_Exception If the file or URL cannot be retrieved. * -- GitLab