mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
If json and empty print empty array
This commit is contained in:
parent
8067e42f78
commit
92271d2981
|
|
@ -165,6 +165,8 @@ class Response extends ResponseAbstract implements RenderableInterface
|
|||
$result[] = $response;
|
||||
} elseif ($response instanceof \JsonSerializable) {
|
||||
$result[] = $response->jsonSerialize();
|
||||
} elseif ($response === null) {
|
||||
continue;
|
||||
} else {
|
||||
throw new \Exception('Wrong response type');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user