Skip to content

Commit

Permalink
Merge pull request #115 from mapogolions/enhancement/inconsistent-beh…
Browse files Browse the repository at this point in the history
…aviour

Reduce withStatus method responsibility
  • Loading branch information
l0gicgate authored Aug 4, 2019
2 parents 7936bf9 + a46ac36 commit a334578
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,6 @@ public function withStatus($code, $reasonPhrase = '')

$clone = clone $this;
$clone->status = $code;

if ($reasonPhrase === '' && isset(static::$messages[$code])) {
$reasonPhrase = static::$messages[$code];
}

$clone->reasonPhrase = $reasonPhrase;

return $clone;
Expand Down

0 comments on commit a334578

Please sign in to comment.