This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 469d82d6e2 bug #36672 [Validator] Skip validation when email is an empty object (acrobat)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Skip validation when email is an empty object

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | <!-- required for new features -->

When the value passed to the email validator is an empty object the validator is still called and will mark the value as invalid. The object should be skipped in this case, as it is also done in the `UrlValidator`

bfdbb244fe/src/Symfony/Component/Validator/Constraints/UrlValidator.php (L59-L62)

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Commits
-------

de5d68ef2a Skip validation when email is an empty object
2020-05-04 09:50:33 +02:00
..
Asset Tweak the code to avoid fabbot false positives 2020-04-12 16:33:46 +02:00
BrowserKit Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
Cache [Cache] skip APCu in chains when the backend is disabled 2020-04-23 23:50:38 +02:00
ClassLoader Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
Config Tweak the code to avoid fabbot false positives 2020-04-12 16:33:46 +02:00
Console [Console] Fix OutputStream for PHP 7.4 2020-03-27 18:07:22 +01:00
CssSelector Fix quotes in exception messages 2020-03-16 09:31:04 +01:00
Debug [Debug] fix for PHP 7.3.16+/7.4.4+ 2020-03-23 11:22:40 +01:00
DependencyInjection [DI] fix loading defaults when using the PHP-DSL 2020-04-13 11:33:40 +02:00
DomCrawler Fix quotes in exception messages 2020-03-16 09:31:04 +01:00
Dotenv [Dotenv] Fixed infinite loop with missing quote followed by quoted value 2020-01-07 21:29:45 +01:00
EventDispatcher Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
ExpressionLanguage Fix quotes in exception messages 2020-03-16 09:31:04 +01:00
Filesystem Fix test 2020-04-12 18:54:01 +02:00
Finder fix unix root dir issue 2020-02-14 08:34:21 +01:00
Form Fix annotation 2020-05-01 19:30:18 +02:00
HttpFoundation [HttpFoundation] workaround PHP bug in the session module 2020-04-18 22:23:17 +02:00
HttpKernel updated VERSION for 3.4.40 2020-04-28 19:41:38 +02:00
Inflector [3.4][Inflector] Improve testSingularize() argument name 2020-05-04 09:08:14 +02:00
Intl Tweak the code to avoid fabbot false positives 2020-04-12 16:33:46 +02:00
Ldap Tweak the code to avoid fabbot false positives 2020-04-12 16:33:46 +02:00
Lock Fix more quotes in exception messages 2020-03-16 16:51:59 +01:00
OptionsResolver remove assertions that can never be reached 2020-04-06 10:30:32 +02:00
Process Tweak the code to avoid fabbot false positives 2020-04-12 16:33:46 +02:00
PropertyAccess [PropertyAccess] fix tests 2020-04-06 12:01:14 +02:00
PropertyInfo [PropertyInfo][ReflectionExtractor] Check the array mutator prefixes last when the property is singular 2020-04-01 19:12:29 +02:00
Routing [Routing] µtweaks 2020-04-12 11:58:27 +02:00
Security Update LdapBindAuthenticationProvider.php 2020-04-19 23:34:01 +02:00
Serializer Tweak the code to avoid fabbot false positives 2020-04-12 16:33:46 +02:00
Stopwatch Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
Templating Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
Translation Fix code 2020-04-12 18:39:58 +02:00
Validator Skip validation when email is an empty object 2020-05-03 21:36:20 +02:00
VarDumper [VarDumper] fix side-effect by not using mt_rand() 2020-03-17 23:27:36 +01:00
WebLink Update year in license files 2020-01-01 12:03:25 +01:00
Workflow [Workflow] Use a strict comparison when retrieving raw markin in MarkingStore 2020-04-07 11:39:41 +02:00
Yaml [YAML] escape DEL(\x7f) 2020-04-24 19:16:04 +09:00