Commit a61c8c6
committed
bug #4615 Update NotBlank to reflect the actual validation (DRvanR)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #4615).
Discussion
----------
Update NotBlank to reflect the actual validation
| Q | A
| ------------- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | all
| Fixed tickets | n/a
As can be seen in the [validator][1] class values that are false also lead to a violation. This was not documented, which we discovered when using this constraint 😉
[1]: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php#L34
Commits
-------
b11ad2e Update NotBlank to reflect the actual validation1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments