Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Dec 21, 2018
1 parent 3c4cd8d commit f5117b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ public function withStatus($statusCode, $reasonPhrase = '') : ResponseInterface
*
* @param mixed $statusCode
*
* @return void
*
* @throws \InvalidArgumentException
*
* @link https://tools.ietf.org/html/rfc7230#section-3.1.2
*/
public function validateStatusCode($statusCode) : void
protected function validateStatusCode($statusCode) : void
{
if (! \is_int($statusCode))
{
Expand All @@ -102,11 +104,13 @@ public function validateStatusCode($statusCode) : void
*
* @param mixed $reasonPhrase
*
* @return void
*
* @throws \InvalidArgumentException
*
* @link https://tools.ietf.org/html/rfc7230#section-3.1.2
*/
public function validateReasonPhrase($reasonPhrase) : void
protected function validateReasonPhrase($reasonPhrase) : void
{
if (! \is_string($reasonPhrase))
{
Expand Down

0 comments on commit f5117b0

Please sign in to comment.