8000 [Validator] Clarify behaviour of Blank and NotBlank validator by davidfuhr · Pull Request #6030 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Clarify behaviour of Blank and NotBlank validator #6030

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

Closed
wants to merge 1 commit into from
Closed

[Validator] Clarify behaviour of Blank and NotBlank validator #6030

wants to merge 1 commit into from

Conversation

davidfuhr
Copy link
Q A
Doc fix? yes
New docs? no
Applies to 2.3+
Fixed tickets

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets |
8000 @davidfuhr davidfuhr changed the title Clearify behaviour of Blank and NotBlank validator [Validator] Clarify behaviour of Blank and NotBlank validator Dec 17, 2015
:doc:`/reference/constraints/NotBlank`. But be careful as ``NotBlank`` is
*not* strictly the opposite of ``Blank``. Emtpy array and strictly
``false`` are considered blank by the ``NotBlank`` validator but not by the
``Blank`` validator.
Copy link
Member

Choose a reason for hiding this comment

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

This is related to the fact how most validators treat empty strings and null values (see #4244). Maybe we can clarify this a bit?

@weaverryan
Copy link
Member

Thanks @davidfuhr! Merged at sha: df3cdef into 2.7 and tweaked at sha: 713c3cc

@weaverryan weaverryan closed this Jul 20, 2017
xabbuh added a commit that referenced this pull request Jul 20, 2017
* 2.7:
  Simplified the requirements article
  [#6030] Simplifying and showing code
  Clearify behaviour of Blank and NotBlank validator
  [#5838] Tweaking comment - the phpdoc policy is not concrete
  Update standards to match actual practices
xabbuh added a commit that referenced this pull request Jul 20, 2017
* 2.8:
  Simplified the requirements article
  [#6030] Simplifying and showing code
  Clearify behaviour of Blank and NotBlank validator
  [#5838] Tweaking comment - the phpdoc policy is not concrete
  Update standards to match actual practices
  Updated the Requirements article for Symfony 2.8
xabbuh added a commit that referenced this pull request Jul 20, 2017
* 3.2:
  [#8195] fix requirement checker binary
  Simplified the requirements article
  [#6030] Simplifying and showing code
  Clearify behaviour of Blank and NotBlank validator
  [#5838] Tweaking comment - the phpdoc policy is not concrete
  Update standards to match actual practices
  Updated the Requirements article for Symfony 3.2
  Updated the Requirements article for Symfony 2.8
xabbuh added a commit that referenced this pull request Jul 20, 2017
* 3.3:
  [#8195] fix requirement checker binary
  Simplified the requirements article
  [#6030] Simplifying and showing code
  Clearify behaviour of Blank and NotBlank validator
  [#5838] Tweaking comment - the phpdoc policy is not concrete
  Update standards to match actual practices
  Updated the requirements article for Smyfony 3.3
  Updated the Requirements article for Symfony 3.2
  Updated the Requirements article for Symfony 2.8
xabbuh added a commit that referenced this pull request Jul 20, 2017
* 3.4:
  [#8195] fix requirement checker binary
  Simplified the requirements article
  [#6030] Simplifying and showing code
  Clearify behaviour of Blank and NotBlank validator
  [#5838] Tweaking comment - the phpdoc policy is not concrete
  Update standards to match actual practices
  Updated the Requirements article for Symfony 3.4
  Updated the requirements article for Smyfony 3.3
  Updated the Requirements article for Symfony 3.2
  Updated the Requirements article for Symfony 2.8
weaverryan added a commit that referenced this pull request Jul 21, 2017
* origin/3.3:
  [#8195] fix requirement checker binary
  Simplified the requirements article
  [#6030] Simplifying and showing code
  Clearify behaviour of Blank and NotBlank validator
  [#5838] Tweaking comment - the phpdoc policy is not concrete
  Update standards to match actual practices
  Updated the requirements article for Smyfony 3.3
  Updated the Requirements article for Symfony 3.2
  Updated the Requirements article for Symfony 2.8
  removed Charles
  Updated the Core Team information
  added CVE 2017-11365
  added URL where to ask for a CVE identifier
  add missing choices_as_values options
  Update usage.rst
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
0