removes condition
This commit is contained in:
parent
02d4b6b612
commit
023e88ff56
1 changed files with 28 additions and 30 deletions
|
@ -493,7 +493,6 @@ class Response extends SwooleResponse
|
|||
}
|
||||
}
|
||||
|
||||
if ($data->isSet($key)) {
|
||||
if ($rule['array']) {
|
||||
if (!is_array($document[$key])) {
|
||||
throw new Exception($key . ' must be an array of type ' . $rule['type']);
|
||||
|
@ -531,7 +530,6 @@ class Response extends SwooleResponse
|
|||
$data[$key] = $this->output($data[$key], $rule['type']);
|
||||
}
|
||||
}
|
||||
}
|
||||
$output[$key] = $data[$key];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue