Skip to content

Commit

Permalink
Make sure to cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Mar 11, 2017
1 parent 805b26e commit 69d02e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory/MessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function createResponse(
$body = null,
$protocolVersion = '1.1'
) {
return new Response($statusCode, $headers, $body, $protocolVersion, $reasonPhrase);
return new Response((int) $statusCode, $headers, $body, $protocolVersion, $reasonPhrase);
}
}

0 comments on commit 69d02e5

Please sign in to comment.