Skip to content

Commit 33a4e54

Browse files
committed
Fix
1 parent 4f696ba commit 33a4e54

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/Functional/Infra/Transformer/ConstraintToParamsDocTransformerTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,7 @@ public function testShouldHandleCallbackConstraint()
143143
public function testShouldHandleCollectionConstraintAsArrayDoc()
144144
{
145145
$fieldsConstraintList = [0 => new Assert\Type('string'), 1 => new Assert\Type('integer')];
146-
$constraint = new Assert\Collection([
147-
'fields' => $fieldsConstraintList,
148-
'allowExtraFields' => true,
149-
'allowMissingFields' => true,
150-
]);
146+
$constraint = new Assert\Collection($fieldsConstraintList, null, null, true, true);
151147
$doc = new ArrayDoc();
152148
$subDoc = new StringDoc();
153149
$subDoc2 = new IntegerDoc();

0 commit comments

Comments
 (0)