Skip to content

Commit

Permalink
updated status code setter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ynunez committed Jun 14, 2015
1 parent 4b8e518 commit 52df8b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JuiceKit/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ public function getStatusCode()

public function setStatusCode($statusCode)
{
if (is_int($statusCode)) {
throw new InvalidArgumentException(sprintf("%s is not a integer"));
if (!is_int($statusCode)) {
throw new InvalidArgumentException(sprintf("%s is not a integer", $statusCode));
}

$this->statusCode = $statusCode;
Expand Down

0 comments on commit 52df8b9

Please sign in to comment.