Skip to content

Commit

Permalink
merged branch Tobion/patch-2 (PR #5240)
Browse files Browse the repository at this point in the history
Commits
-------

9e5d5a4 [Form] fix static method call

Discussion
----------

[Form] fix static method call

`allowDataWalking` was called statically, but wasnt defined as such.
  • Loading branch information
fabpot committed Aug 25, 2012
2 parents d1be451 + 9e5d5a4 commit bef34bd
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -53,7 +53,7 @@ public function validate($form, Constraint $constraint)
// Validate the form data only if transformation succeeded
$path = $this->context->getPropertyPath();
$graphWalker = $this->context->getGraphWalker();
$groups = $this->getValidationGroups($form);
$groups = self::getValidationGroups($form);

if (!empty($path)) {
$path .= '.';
Expand Down Expand Up @@ -126,7 +126,7 @@ public function validate($form, Constraint $constraint)
*
* @return Boolean Whether the graph walker may walk the data.
*/
private function allowDataWalking(FormInterface $form)
private static function allowDataWalking(FormInterface $form)
{
$data = $form->getData();

Expand Down Expand Up @@ -158,7 +158,7 @@ private function allowDataWalking(FormInterface $form)
*
* @return array The validation groups.
*/
private function getValidationGroups(FormInterface $form)
private static function getValidationGroups(FormInterface $form)
{
do {
$groups = $form->getConfig()->getOption('validation_groups');
Expand Down

0 comments on commit bef34bd

Please sign in to comment.