Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/singles/zf2 into hotfix/r…
Browse files Browse the repository at this point in the history
…esponse_redundancy
  • Loading branch information
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 @@ -167,11 +167,6 @@ public static function fromString($string)
}

$response->version = $matches['version'];

if (!defined(get_called_class() . '::STATUS_CODE_' . $matches['status'])) {
throw new Exception\InvalidArgumentException('Unknown status code found in provided string');
}

$response->setStatusCode($matches['status']);
$response->setReasonPhrase($matches['reason']);

Expand Down

0 comments on commit 0772403

Please # to comment.