1
0
Fork 0
mirror of synced 2024-06-27 18:50:47 +12:00

Updated latest changes

This commit is contained in:
Eldad Fux 2020-10-30 00:44:01 +02:00
parent 752c6b4ecb
commit 50d404e7a3
3 changed files with 11 additions and 12 deletions

View file

@ -238,8 +238,7 @@ class Response extends SwooleResponse
if (!$document->isSet($key)) {
if (!is_null($rule['default'])) {
$document->setAttribute($key, $rule['default']);
}
else {
} else {
throw new Exception('Model '.$model->getName().' is missing response key: '.$key);
}
}