webcontextmanager force types

This commit is contained in:
Astrologies 2021-12-01 23:15:17 -05:00
parent 9a68dbf7ba
commit e3333082e8
1 changed files with 2 additions and 2 deletions

View File

@ -82,14 +82,14 @@ namespace Alphaland\Web {
}
}
public static function Redirect($url, $code = 302)
public static function Redirect(string $url, $code = 302)
{
http_response_code($code);
header("Location: $url");
die();
}
public static function HttpGetPing($url, $timeout) //to see if a URL times out
public static function HttpGetPing(string $url, int $timeout) //to see if a URL times out
{
$curl_do = curl_init();
curl_setopt($curl_do, CURLOPT_URL, $url);