File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,7 @@ private function extractFormValues(FormView $formView): array
166
166
$ values = [];
167
167
foreach ($ formView ->children as $ child ) {
168
168
$ name = $ child ->vars ['name ' ];
169
- if (
170
- (
171
- !\array_key_exists ('expanded ' , $ child ->vars )
172
- || !$ child ->vars ['expanded ' ]
173
- )
174
- && \count ($ child ->children ) > 0
175
- ) {
169
+ if (!($ child ->vars ['expanded ' ] ?? false ) && \count ($ child ->children ) > 0 ) {
176
170
$ values [$ name ] = $ this ->extractFormValues ($ child );
177
171
178
172
continue ;
Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ public function testFormValues(): void
23
23
{
24
24
$ component = new Component6 ($ this ->factory ->createBuilder ());
25
25
26
- $ values = $ component ->getFormValues ();
27
26
$ this ->assertSame (
28
- $ values ,
29
27
[
30
28
'text ' => '' ,
31
29
'textarea ' => '' ,
@@ -35,7 +33,8 @@ public function testFormValues(): void
35
33
'checkbox ' => null ,
36
34
'file ' => '' ,
37
35
'hidden ' => '' ,
38
- ]
36
+ ],
37
+ $ component ->getFormValues ()
39
38
);
40
39
}
41
40
}
You can’t perform that action at this time.
0 commit comments