diff --git a/src/Validation/Validation.php b/src/Validation/Validation.php index 69101e286ff..101f231bf7b 100644 --- a/src/Validation/Validation.php +++ b/src/Validation/Validation.php @@ -169,7 +169,7 @@ public static function cc($check, $type = 'fast', $deep = false, $regex = null) if ($regex !== null) { if (static::_check($check, $regex)) { - return !$deep || static::luhn($check, $deep); + return !$deep || static::luhn($check); } } $cards = [ @@ -196,7 +196,7 @@ public static function cc($check, $type = 'fast', $deep = false, $regex = null) $regex = $cards['all'][strtolower($value)]; if (static::_check($check, $regex)) { - return static::luhn($check, $deep); + return static::luhn($check); } } } elseif ($type === 'all') { @@ -204,14 +204,14 @@ public static function cc($check, $type = 'fast', $deep = false, $regex = null) $regex = $value; if (static::_check($check, $regex)) { - return static::luhn($check, $deep); + return static::luhn($check); } } } else { $regex = $cards['fast']; if (static::_check($check, $regex)) { - return static::luhn($check, $deep); + return static::luhn($check); } } return false;