mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +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;
|
$result[] = $response;
|
||||||
} elseif ($response instanceof \JsonSerializable) {
|
} elseif ($response instanceof \JsonSerializable) {
|
||||||
$result[] = $response->jsonSerialize();
|
$result[] = $response->jsonSerialize();
|
||||||
|
} elseif ($response === null) {
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Wrong response type');
|
throw new \Exception('Wrong response type');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user