From fd654bf8f04a075c8d3e091ea0524ce97ab185ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederic=20G=2E=20=C3=98stby?= Date: Thu, 6 Jun 2024 15:09:46 +0200 Subject: [PATCH] Allow null, int and float responses --- src/mako/http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mako/http/Response.php b/src/mako/http/Response.php index b7795e542..fe246444f 100644 --- a/src/mako/http/Response.php +++ b/src/mako/http/Response.php @@ -99,7 +99,7 @@ public function getRequest(): Request /** * Sets the response body. */ - public function setBody(ResponseBuilderInterface|ResponseSenderInterface|string|Stringable $body): Response + public function setBody(null|float|int|ResponseBuilderInterface|ResponseSenderInterface|string|Stringable $body): Response { $this->body = $body;