8000 [Validator] Fixed form validation by jankramer · Pull Request #6168 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Fixed form validation #6168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed form validation
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
commit 109bb7be0acc66bedd3c25ff777c95ebba91b0ca
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