The return value from SimpleSAML\Utils\HTTP::fetch() can never be false.
If something fails, an exception would be thrown, instead of “false” being returned. Also, at this point we are sure that the return value will be a string, because the call to fetch() does not set the third parameter ($getHeaders) to true.
Please register or sign in to comment