Skip to content

Commit

Permalink
Fix return type of method \Swoole\FastCGI\HttpRequest::withBody()
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 9, 2023
1 parent 26622c2 commit d204c44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/FastCGI/HttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,7 @@ public function withHeaders(array $headers): self
return $this;
}

/** @return $this */
public function withBody($body): Message
public function withBody($body): self
{
if (is_array($body)) {
$body = http_build_query($body);
Expand Down

0 comments on commit d204c44

Please sign in to comment.