Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c65ec65

Browse files
committed
minor #59606 [Validator] add missing changelog/upgrade entries (xabbuh)
This PR was merged into the 7.3 branch. Discussion ---------- [Validator] add missing changelog/upgrade entries | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT I forgot to add them in #54744 Commits ------- 411d56d add missing changelog/upgrade entries
2 parents 05d5bb3 + 411d56d commit c65ec65

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

UPGRADE-7.3.md

+23
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,29 @@ Serializer
4242

4343
* Deprecate the `CompiledClassMetadataFactory` and `CompiledClassMetadataCacheWarmer` classes
4444

45+
Validator
46+
---------
47+
48+
* Deprecate passing an array of options to the constructors of the constraint classes, pass each option as a dedicated argument instead
49+
50+
Before:
51+
52+
```php
53+
new NotNull([
54+
'groups' => ['foo', 'bar'],
55+
'message' => 'a custom constraint violation message',
56+
])
57+
```
58+
59+
After:
60+
61+
```php
62+
new NotNull(
63+
groups: ['foo', 'bar'],
64+
message: 'a custom constraint violation message',
65+
)
66+
```
67+
4568
VarDumper
4669
---------
4770

src/Symfony/Component/Validator/CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ CHANGELOG
44
7.3
55
---
66

7+
* Deprecate passing an array of options to the constructors of the constraint classes, pass each option as a dedicated argument instead
8+
9+
Before:
10+
11+
```php
12+
new NotNull([
13+
'groups' => ['foo', 'bar'],
14+
'message' => 'a custom constraint violation message',
15+
])
16+
```
17+
18+
After:
19+
20+
```php
21+
new NotNull(
22+
groups: ['foo', 'bar'],
23+
message: 'a custom constraint violation message',
24+
)
25+
```
726
* Add support for ratio checks for SVG files to the `Image` constraint
827
* Add the `Slug` constraint
928

0 commit comments

Comments
 (0)