Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PhoneNumber constraint default message #128

Merged
merged 1 commit into from
Dec 2, 2022
Merged

Fix PhoneNumber constraint default message #128

merged 1 commit into from
Dec 2, 2022

Conversation

zavarock
Copy link

If using validation by @Attribute, when it fails, the default message when there is more than one type is:

return 'This value is not a valid number.';

Which does not have a translated message.
As I see, the default message should be "This value is not a valid phone number.".

Copy link
Collaborator

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Nice catch

@Nek-
Copy link
Collaborator

Nek- commented Dec 2, 2022

Yes it's nice thank you

@Nek- Nek- merged commit 59679cd into odolbeau:master Dec 2, 2022
@maxhelias
Copy link
Collaborator

The CI failed (https://github.com/odolbeau/phone-number-bundle/actions/runs/3603679058/jobs/6072168474). Can you also adapt the tests so that it comes back

@Nek- Nek- mentioned this pull request Dec 2, 2022
@Nek-
Copy link
Collaborator

Nek- commented Dec 2, 2022

@maxhelias fixed in #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants