mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Some more minor fixes, and checks for the temporary 'todo' tag
This commit is contained in:
parent
f3aa4f35fc
commit
fe03f01393
7 changed files with 58 additions and 13 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue