File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ Validation of arrays is possible using the ``Collection`` constraint::
7878 'eye_color' => new Assert\Choice(choices: [3, 4]),
7979 'file' => new Assert\File(),
8080 'password' => new Assert\Length(['min' => 60]),
81- 'tags' => new Assert\Optional([
82- new Assert\Type('array'),
83- new Assert\Count([' min' => 1] ),
81+ 'tags' => new Assert\Optional(constraints: [
82+ new Assert\Type(type: 'array'),
83+ new Assert\Count(min: 1 ),
8484 new Assert\All([
85- new Assert\Collection([
85+ new Assert\Collection(constraints: [
8686 'slug' => [
8787 new Assert\NotBlank(),
8888 new Assert\Type(['type' => 'string']),
@@ -91,7 +91,7 @@ Validation of arrays is possible using the ``Collection`` constraint::
9191 new Assert\NotBlank(),
9292 ],
9393 ]),
94- new CustomUniqueTagValidator([' groups' => 'custom']),
94+ new CustomUniqueTagValidator(groups: [ 'custom']),
9595 ]),
9696 ]),
9797 ]);
You can’t perform that action at this time.
0 commit comments