Skip to content

Commit

Permalink
Fixed validation of date
Browse files Browse the repository at this point in the history
  • Loading branch information
inacho committed May 21, 2015
1 parent ad7f843 commit b44bcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static function validDate($year, $month)
}

// past date
if ($year < date('Y') || $year == date('Y') && $month <= date('m')) {
if ($year < date('Y') || $year == date('Y') && $month < date('m')) {
return false;
}

Expand Down

0 comments on commit b44bcd4

Please sign in to comment.