Skip to content

Commit

Permalink
Allow null, int and float responses
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Jun 6, 2024
1 parent a09401c commit fd654bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mako/http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fd654bf

Please sign in to comment.