Skip to content

Commit

Permalink
Updates:
Browse files Browse the repository at this point in the history
- strict type.
  • Loading branch information
Sergey Karavay committed Dec 12, 2017
1 parent c1110f1 commit a471b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NanoHttpStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@ public function isServerError(int $code): bool
*/
private function extractFirstDigit(int $code): int
{
return substr((string)$code, 0, 1);
return (int)substr((string)$code, 0, 1);
}
}

0 comments on commit a471b81

Please sign in to comment.