Skip to content

Commit f37096c

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: moved method to function marked method as being internal
2 parents 6e39051 + 93e136b commit f37096c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function getTests()
106106
{
107107
return array(
108108
new TwigTest('selectedchoice', 'Symfony\Bridge\Twig\Extension\twig_is_selected_choice'),
109-
new TwigTest('rootform', array($this, 'isRootForm')),
109+
new TwigTest('rootform', 'Symfony\Bridge\Twig\Extension\twig_is_root_form'),
110110
);
111111
}
112112

@@ -166,11 +166,6 @@ public function __unset($name)
166166
unset($this->$name);
167167
}
168168

169-
public function isRootForm(FormView $formView)
170-
{
171-
return null === $formView->parent;
172-
}
173-
174169
/**
175170
* {@inheritdoc}
176171
*/
@@ -199,3 +194,11 @@ function twig_is_selected_choice(ChoiceView $choice, $selectedValue)
199194

200195
return $choice->value === $selectedValue;
201196
}
197+
198+
/**
199+
* @internal
200+
*/
201+
function twig_is_root_form(FormView $formView)
202+
{
203+
return null === $formView->parent;
204+
}

0 commit comments

Comments
 (0)