fix return types for Utils/Internet getURL()/postURL()

This commit is contained in:
Dylan K. Taylor 2020-01-29 20:43:09 +00:00
parent 5cf2fcbbb7
commit e007fad5b8
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ class Internet{
* @param string[] $headers reference parameter
* @param int $httpCode reference parameter
*
* @return bool|mixed false if an error occurred, mixed data if successful.
* @return string|false
*/
public static function getURL(string $page, int $timeout = 10, array $extraHeaders = [], &$err = null, &$headers = null, &$httpCode = null){
try{
@ -162,7 +162,7 @@ class Internet{
* @param string[] $headers reference parameter
* @param int $httpCode reference parameter
*
* @return bool|mixed false if an error occurred, mixed data if successful.
* @return string|false
*/
public static function postURL(string $page, $args, int $timeout = 10, array $extraHeaders = [], &$err = null, &$headers = null, &$httpCode = null){
try{

View File

@ -426,7 +426,7 @@ class Utils{
* @param string[] $headers reference parameter
* @param int $httpCode reference parameter
*
* @return bool|mixed false if an error occurred, mixed data if successful.
* @return string|false
*/
public static function getURL(string $page, int $timeout = 10, array $extraHeaders = [], &$err = null, &$headers = null, &$httpCode = null){
return Internet::getURL($page, $timeout, $extraHeaders, $err, $headers, $httpCode);
@ -442,7 +442,7 @@ class Utils{
* @param string[] $headers reference parameter
* @param int $httpCode reference parameter
*
* @return bool|mixed false if an error occurred, mixed data if successful.
* @return string|false
*/
public static function postURL(string $page, $args, int $timeout = 10, array $extraHeaders = [], &$err = null, &$headers = null, &$httpCode = null){
return Internet::postURL($page, $args, $timeout, $extraHeaders, $err, $headers, $httpCode);