Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Validator] Add theWordCount constraint#57716
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bc846f2 to3ddca9cCompareUh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Validator/Constraints/WordCountValidator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Validator/Tests/Constraints/WordCountTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Validator/Tests/Constraints/WordCountValidatorTest.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
| yield ['', 1]; // empty string should always pass and eventually be handled by NotBlankValidator | ||
| } | ||
| public static function provideInvalidTypes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| publicstaticfunction provideInvalidTypes() | |
| publicstaticfunction provideInvalidTypes():iterable |
alexandre-daubois commentedJul 15, 2024
Pushed plural form of the constraint message |
src/Symfony/Component/Validator/Constraints/WordCountValidator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
xabbuh left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
the failures on AppVeyor look related, we need to skip some of the added tests when the intl extension is missing
alexandre-daubois commentedJul 17, 2024
Thought of adding a check in the constraint but forgot the tests. Thanks for pointing out, I added |
OskarStark commentedJul 17, 2024
Can you please create and reference a docs PR? Thanks |
alexandre-daubois commentedJul 17, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@OskarStark of course, here you go:symfony/symfony-docs#20047 |
xabbuh commentedJul 17, 2024
Thank you@alexandre-daubois. |
…raint (OskarStark)This PR was squashed before being merged into the 5.4 branch.Discussion----------[Validator] Add German translation for `WordCount` constraint| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | no| Issues || License | MITNeeds*#57716Commits-------b0eaf91 [Validator] Add German translation for `WordCount` constraint
…n (alexandre-daubois)This PR was merged into the 5.4 branch.Discussion----------[Validator] Add `WordCount` constraint French translation| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | -| License | MIT:information_source: Requires#57716 to be merged firstCommits-------bd98f5d [Validator] Add `WordCount` constraint French translation
This PR was merged into the 7.2 branch.Discussion----------[Validator] Unwrap useless cast| Q | A| ------------- | ---| Branch? | 7.2| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | -| License | MITAfter `@AlexisRossat`'s [comment](#57716 (comment)), the same cast was found at some other places in Validator.Commits-------15dc8bd [Validator] Unwrap useless cast
This PR was merged into the 7.2 branch.Discussion----------[Validator] Unwrap useless cast| Q | A| ------------- | ---| Branch? | 7.2| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | -| License | MITAfter `@AlexisRossat`'s [comment](symfony/symfony#57716 (comment)), the same cast was found at some other places in Validator.Commits-------15dc8bd780 [Validator] Unwrap useless cast
…ubois)This PR was merged into the 7.2 branch.Discussion----------[Validator] Add the `WordCount` constraintRelated tosymfony/symfony#57716Commits-------e983455 [Validator] Add the `WordCount` constraint
Uh oh!
There was an error while loading.Please reload this page.
Doc PR:symfony/symfony-docs#20047