ZipStream

This commit is contained in:
2021-01-13 01:36:04 +01:00
parent 8da94bafdf
commit e19b4d1a46
15 changed files with 614 additions and 43 deletions

View File

@@ -50,7 +50,7 @@ class Request {
foreach($this->params as $name => $param) {
$value = $values[$name] ?? NULL;
$isEmpty = (is_string($value) || is_array($value)) && empty($value);
$isEmpty = (is_string($value) && strlen($value) === 0) || (is_array($value) && empty($value));
if(!$param->optional && (is_null($value) || $isEmpty)) {
return $this->createError("Missing parameter: $name");
}