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
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+
4568VarDumper
4669---------
4770
Original file line number Diff line number Diff line change @@ -4,6 +4,25 @@ CHANGELOG
447.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
You can’t perform that action at this time.
0 commit comments