Skip to content

Commit

Permalink
Validators::isRc fix strict types declaration (#12)
Browse files Browse the repository at this point in the history
* Fix strict types

* Fix strict types
  • Loading branch information
mabar authored and Milan Felix Šulc committed Nov 16, 2018
1 parent 958c61c commit 65c7d90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Validators.php
Expand Up @@ -20,6 +20,9 @@ public static function isRc(string $rc): bool
}

[, $year, $month, $day, $ext, $c] = $matches;
$year = (int) $year;
$month = (int) $month;
$day = (int) $day;

// till 1954 numbers of 9 digits cannot be validated
if ($c === '') {
Expand Down

0 comments on commit 65c7d90

Please sign in to comment.