From 8e349dd63d90afe2d6cf541ade07f4fc8b9807fb Mon Sep 17 00:00:00 2001 From: Josenilton Junior Date: Mon, 24 Oct 2022 10:40:08 -0300 Subject: [PATCH] Fix PhoneNumber constraint default message --- src/Validator/Constraints/PhoneNumber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Constraints/PhoneNumber.php b/src/Validator/Constraints/PhoneNumber.php index abfffa40..835a17d2 100644 --- a/src/Validator/Constraints/PhoneNumber.php +++ b/src/Validator/Constraints/PhoneNumber.php @@ -112,7 +112,7 @@ public function getMessage(): string return "This value is not a valid $typeName."; } - return 'This value is not a valid number.'; + return 'This value is not a valid phone number.'; } public function getTypeNames(): array