8000 merged branch Tobion/patch-2 (PR #5240) · symfony/symfony@bef34bd · GitHub
[go: up one dir, main page]

Skip to content

Commit bef34bd

Browse files
committed
merged branch Tobion/patch-2 (PR #5240)
Commits ------- 9e5d5a4 [Form] fix static method call Discussion ---------- [Form] fix static method call `allowDataWalking` was called statically, but wasnt defined as such.
2 parents d1be451 + 9e5d5a4 commit bef34bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function validate($form, Constraint $constraint)
5353
// Validate the form data only if transformation succeeded
5454
$path = $this->context->getPropertyPath();
5555
$graphWalker = $this->context->getGraphWalker();
56-
$groups = $this->getValidationGroups($form);
56+
$groups = self::getValidationGroups($form);
5757

5858
if (!empty($path)) {
5959
$path .= '.';
@@ -126,7 +126,7 @@ public function validate($form, Constraint $constraint)
126126
*
127127
* @return Boolean Whether the graph walker may walk the data.
128128
*/
129-
private function allowDataWalking(FormInterface $form)
129+
private static function allowDataWalking(FormInterface $form)
130130
{
131131
$data = $form->getData();
132132

@@ -158,7 +158,7 @@ private function allowDataWalking(FormInterface $form)
158158
*
159159
* @return array The validation groups.
160160
*/
161-
private function getValidationGroups(FormInterface $form)
161+
private static function getValidationGroups(FormInterface $form)
162162
{
163163
do {
164164
$groups = $form->getConfig()->getOption('validation_groups');

0 commit comments

Comments
 (0)
0