Skip to content

Commit

Permalink
Fixed form validation
Browse files Browse the repository at this point in the history
Swapped arguments $groups and $subPath in ExecutionContext::validate and ExecutionContext::validateValue, so they match their interface signatures again.
  • Loading branch information
Jan Kramer committed Dec 3, 2012
1 parent cc53fc2 commit 109bb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Validator/ExecutionContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function getMetadataFor($value)
/**
* {@inheritdoc}
*/
public function validate($value, $groups = null, $subPath = '', $traverse = false, $deep = false)
public function validate($value, $subPath = '', $groups = null, $traverse = false, $deep = false)
{
$propertyPath = $this->getPropertyPath($subPath);

Expand All @@ -252,7 +252,7 @@ public function validate($value, $groups = null, $subPath = '', $traverse = fals
/**
* {@inheritdoc}
*/
public function validateValue($value, $constraints, $groups = null, $subPath = '')
public function validateValue($value, $constraints, $subPath = '', $groups = null)
{
$constraints = is_array($constraints) ? $constraints : array($constraints);

Expand Down

0 comments on commit 109bb7b

Please sign in to comment.