Skip to content

Conversation

@DRvanR
Copy link
Contributor

@DRvanR DRvanR commented Dec 9, 2014

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets n/a

As can be seen in the validator class values that are false also lead to a violation. This was not documented, which we discovered when using this constraint 😉

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
@weaverryan
Copy link
Member

Great catch and explanation - thanks @DRvanR!

weaverryan added a commit that referenced this pull request May 22, 2015
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 validation
@weaverryan weaverryan closed this May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants