Skip to content

Commit 6fa00b6

Browse files
authored
Merge pull request #324 from mshcherb/fixy_issue_with_symfony_dependancy
Fix: Replace deprecated Symfony Validator array syntax with named arguments
2 parents c31917a + 77be1d5 commit 6fa00b6

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

src/Mailjet/Normalizer/ContactNormalizer.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,15 @@ public static function shouldBeNormalized(array $data): bool
3737
private static function getValidationRule(): Assert\Collection
3838
{
3939
return new Assert\Collection(
40-
[
41-
'fields' => [
40+
fields: [
4241
'filters' => new Assert\Collection(
43-
[
44-
'fields' => [
45-
'countonly' => new Assert\Length(['min' => 1]),
42+
fields: [
43+
'countonly' => new Assert\Length(min: 1),
4644
],
47-
'allowExtraFields' => true,
48-
]
45+
allowExtraFields: true
4946
),
5047
],
51-
'allowExtraFields' => true,
52-
]
48+
allowExtraFields: true
5349
);
5450
}
5551
}

0 commit comments

Comments
 (0)