Type fix. Supporting numeric values as well.

This commit is contained in:
Dennis Eichhorn 2015-12-22 18:15:22 +01:00
parent d2c35c5bce
commit d70ef1fe9b

View File

@ -243,7 +243,7 @@ class Response extends ResponseAbstract implements RenderableInterface
foreach ($this->response as $key => $response) {
if (is_object($response)) {
$render .= $response->render();
} elseif (is_string($response)) {
} elseif (is_string($response) || is_numeric($response)) {
$render .= $response;
} elseif (is_array($response)) {
$render .= json_encode($response);