diff --git a/src/pt-br-validator/Rules/CelularComDdd.php b/src/pt-br-validator/Rules/CelularComDdd.php index f0abc2e..32b1a1c 100644 --- a/src/pt-br-validator/Rules/CelularComDdd.php +++ b/src/pt-br-validator/Rules/CelularComDdd.php @@ -18,11 +18,11 @@ class CelularComDdd implements Rule */ public function passes($attribute, $value) { - return preg_match('/^\(\d{2}\)\s?\d{4,5}-\d{4}$/', $value) > 0; + return preg_match('/^\([1-9][1-9]\)\s?\d{4,5}-\d{4}$/', $value) > 0; } public function message() { return 'O campo :attribute não é um celular com DDD válido.'; } -} \ No newline at end of file +}