1
0
Fork 0
mirror of synced 2024-07-12 18:05:55 +12:00

removes condition

This commit is contained in:
prateek banga 2023-08-10 20:00:13 +05:30
parent 02d4b6b612
commit 023e88ff56

View file

@ -493,7 +493,6 @@ class Response extends SwooleResponse
} }
} }
if ($data->isSet($key)) {
if ($rule['array']) { if ($rule['array']) {
if (!is_array($document[$key])) { if (!is_array($document[$key])) {
throw new Exception($key . ' must be an array of type ' . $rule['type']); 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']); $data[$key] = $this->output($data[$key], $rule['type']);
} }
} }
}
$output[$key] = $data[$key]; $output[$key] = $data[$key];
} }