10000 Pass already defined variable with list of constrains. · symfony/symfony@7a8cc0d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a8cc0d

Browse files
committed
Pass already defined variable with list of constrains.
1 parent 154fecc commit 7a8cc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testWalkMultipleConstraints($array)
7575
$i = 0;
7676

7777
foreach ($array as $key => $value) {
78-
$this->expectValidateValueAt($i++, '['.$key.']', $value, array($constraint1, $constraint2));
78+
$this->expectValidateValueAt($i++, '['.$key.']', $value, $constraints);
7979
}
8080

8181
$this->validator->validate($array, new All($constraints));

0 commit comments

Comments
 (0)
0