Skip to content

Commit

Permalink
Pass constraints with keys for all symfony versions
Browse files Browse the repository at this point in the history
  • Loading branch information
davedevelopment committed Apr 26, 2013
1 parent 8796779 commit ac4c5a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public function testValidatorConstraint($email, $isValid, $nbGlobalError, $nbEma
));

$builder = $app['form.factory']->createBuilder('form', array(), array(
'validation_constraint' => $constraints,
'validation_constraint' => $constraints, // symfony/validator >=2.1,<2.3
'constraints' => $constraints, // symfony/validator ~2.3
'csrf_protection' => false,
));

Expand Down

0 comments on commit ac4c5a5

Please sign in to comment.