Commit f8cca42
committed
bug symfony#60705 [FrameworkBundle] Fix allow
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[FrameworkBundle] Fix allow `loose` as an email validation mode
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
After upgrading to Symfony 7.2.7 we observe this error:
```
In EnumNode.php line 82:
The value "loose" is not allowed for path "framework.validation.email_valid
ation_mode". Permissible values: "html5-allow-no-tld", "html5", "strict"
```
Our configuration is:
```yaml
framework:
...
validation:
...
email_validation_mode: loose
```
From `bin/console config:dump-reference framework` we observe:
```
framework:
...
validation:
...
email_validation_mode: html5 # One of "html5-allow-no-tld"; "html5"; "strict"
```
After this change, the above error no longer occurs and expected allowed values are observed:
```
$ php bin/console config:dump-reference framework
framework:
...
validation:
...
email_validation_mode: ~ # One of "html5-allow-no-tld"; "html5"; "strict"; "loose"
```
See symfony#60373 and symfony#60365 where the previous code was introduced.
Commits
-------
23b9c4f [FrameworkBundle] Fix allow `loose` as an email validation modeloose as an email validation mode (rhel-eo)File tree
2 files changed
+2
-1
lines changed- src/Symfony/Bundle/FrameworkBundle
- DependencyInjection
- Tests/DependencyInjection
2 files changed
+2
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | | - | |
| 1070 | + | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
0 commit comments