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

Update NotBlank to reflect the actual validation #4615

Closed
wants to merge 1 commit into from

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