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 4109b00 commit 891bf54Copy full SHA for 891bf54
src/LiveComponent/src/ComponentWithFormTrait.php
@@ -270,7 +270,7 @@ private function extractFormValues(FormView $formView): array
270
&& !$child->vars['expanded']
271
&& $child->vars['choices']
272
) {
273
- if (null !== $firstKey = \array_key_first($child->vars['choices'])) {
+ if (null !== $firstKey = array_key_first($child->vars['choices'])) {
274
$values[$name] = $child->vars['choices'][$firstKey]->value ?? null;
275
}
276
0 commit comments