If json and empty print empty array

This commit is contained in:
Dennis Eichhorn 2018-03-24 19:11:23 +01:00
parent 8067e42f78
commit 92271d2981

View File

@ -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');
}