Commit 1c82511
committed
minor symfony#21622 [Validator] Fix parent constructor call to use null instead of empty array (ReeceG)
This PR was merged into the 6.4 branch.
Discussion
----------
[Validator] Fix parent constructor call to use null instead of empty array
This is the new method that prevents the following deprecation message:
`Since symfony/validator 7.4: Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor of App\Validator\Custom instead`
Honestly I don't totally understand what the "mode" option/variable in the 2nd and 3rd examples is doing so I'm not sure if some other change needs to be made for those ones.
Commits
-------
a9a1410 Fix parent constructor call to use null instead of empty arrayFile tree
Expand file treeCollapse file tree
1 file changed
+4
-4
lines changedOpen diff view settings
Filter options
- validation
Expand file treeCollapse file tree
1 file changed
+4
-4
lines changedOpen diff view settings
Collapse file
validation/custom_constraint.rst
Copy file name to clipboardExpand all lines: validation/custom_constraint.rst+4-4Lines changed: 4 additions & 4 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
33 | | - |
34 | 32 | |
35 | 33 | |
| 34 | + |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | 38 | |
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
98 | 98 | |
99 | 99 | |
|
0 commit comments