Skip to content
Snippets Groups Projects
Commit ed423370 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Clarify the return types of SimpleSAML\Utils\HTTP::fetch().

parent a8c165ae
No related branches found
No related tags found
No related merge requests found
...@@ -374,7 +374,8 @@ class HTTP ...@@ -374,7 +374,8 @@ class HTTP
* @param array $context Extra context options. This parameter is optional. * @param array $context Extra context options. This parameter is optional.
* @param boolean $getHeaders Whether to also return response headers. 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 \InvalidArgumentException If the input parameters are invalid.
* @throws \SimpleSAML_Error_Exception If the file or URL cannot be retrieved. * @throws \SimpleSAML_Error_Exception If the file or URL cannot be retrieved.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment