Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove self return typehints from Response object #89

Merged
merged 1 commit into from
May 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function hasHeader($name): bool
/**
* {@inheritdoc}
*/
public function withAddedHeader($name, $value): self
public function withAddedHeader($name, $value)
{
$response = $this->response->withAddedHeader($name, $value);
return new static($response, $this->streamFactory);
Expand All @@ -128,7 +128,7 @@ public function withAddedHeader($name, $value): self
/**
* {@inheritdoc}
*/
public function withBody(StreamInterface $body): self
public function withBody(StreamInterface $body)
{
$response = $this->response->withBody($body);
return new static($response, $this->streamFactory);
Expand All @@ -137,7 +137,7 @@ public function withBody(StreamInterface $body): self
/**
* {@inheritdoc}
*/
public function withHeader($name, $value): self
public function withHeader($name, $value)
{
$response = $this->response->withHeader($name, $value);
return new static($response, $this->streamFactory);
Expand All @@ -146,7 +146,7 @@ public function withHeader($name, $value): self
/**
* {@inheritdoc}
*/
public function withoutHeader($name): self
public function withoutHeader($name)
{
$response = $this->response->withoutHeader($name);
return new static($response, $this->streamFactory);
Expand All @@ -155,7 +155,7 @@ public function withoutHeader($name): self
/**
* {@inheritdoc}
*/
public function withProtocolVersion($version): self
public function withProtocolVersion($version)
{
$response = $this->response->withProtocolVersion($version);
return new static($response, $this->streamFactory);
Expand All @@ -164,7 +164,7 @@ public function withProtocolVersion($version): self
/**
* {@inheritdoc}
*/
public function withStatus($code, $reasonPhrase = ''): self
public function withStatus($code, $reasonPhrase = '')
{
$response = $this->response->withStatus($code, $reasonPhrase);
return new static($response, $this->streamFactory);
Expand Down