Skip to content

Commit

Permalink
fix: type data in response builder
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioDevment authored and MarioDevment committed Feb 13, 2020
1 parent 74797bd commit 8c60e77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ResponseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public function __construct(MockBuilder $mockBuilder)
$this->response = new Response();
}

public function statusCode($statusCode) : self
public function statusCode(int $statusCode) : self
{
$this->response = $this->response->withStatus($statusCode);

return $this;
}

public function body($body)
public function body(string $body) : self
{
$this->response = $this->response->withBody(stream_for($body));

Expand All @@ -47,7 +47,7 @@ public function callback(Closure $callback) : self
return $this;
}

public function header($header, $value) : self
public function header(string $header, string $value) : self
{
$this->response = $this->response->withHeader($header, $value);

Expand Down

0 comments on commit 8c60e77

Please sign in to comment.