Some more minor fixes, and checks for the temporary 'todo' tag

This commit is contained in:
Alex Cabal 2024-01-18 21:25:22 -06:00
parent f3aa4f35fc
commit fe03f01393
7 changed files with 58 additions and 13 deletions

View file

@ -50,7 +50,7 @@ class HttpInput{
return preg_match('/\btext\/html\b/ius', $_SERVER['HTTP_ACCEPT'] ?? '') ? WEB : REST;
}
public static function Str(string $type, string $variable, $allowEmptyString = false): ?string{
public static function Str(string $type, string $variable, bool $allowEmptyString = false): ?string{
$var = self::GetHttpVar($variable, HTTP_VAR_STR, $type);
if(is_array($var)){
@ -78,7 +78,6 @@ class HttpInput{
/**
* @param string $variable
* @param array<mixed> $default
* @return array<string>
*/
public static function GetArray(string $variable): ?array{