File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
src/Symfony/Component/Validator Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,29 @@ Serializer
42
42
43
43
* Deprecate the ` CompiledClassMetadataFactory ` and ` CompiledClassMetadataCacheWarmer ` classes
44
44
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
+
45
68
VarDumper
46
69
---------
47
70
Original file line number Diff line number Diff line change @@ -4,6 +4,25 @@ CHANGELOG
4
4
7.3
5
5
---
6
6
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
+ ```
7
26
* Add support for ratio checks for SVG files to the ` Image ` constraint
8
27
* Add the ` Slug ` constraint
9
28
You can’t perform that action at this time.
0 commit comments