We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed21276 commit 5b2dd3eCopy full SHA for 5b2dd3e
src/Form/Type/RouteTypeType.php
@@ -28,7 +28,7 @@ public function configureOptions(OptionsResolver $resolver)
28
{
29
$choices = [];
30
foreach ($this->routeTypes as $routeType) {
31
- $choices[$routeType] = 'route_type.'.$routeType;
+ $choices['route_type.'.$routeType] = $routeType;
32
}
33
34
$resolver->setDefaults([
tests/Unit/Form/Type/RouteTypeTypeTest.php
@@ -48,8 +48,8 @@ public function testDefaultsSet()
48
->method('setDefaults')
49
->with([
50
'choices' => [
51
- 'foobar' => 'route_type.foobar',
52
- 'barfoo' => 'route_type.barfoo',
+ 'route_type.foobar' => 'foobar',
+ 'route_type.barfoo' => 'barfoo',
53
],
54
'translation_domain' => 'CmfRoutingBundle',
55
]);
0 commit comments