8000 [Form] Add `MultiStepType` by silasjoisten · Pull Request #59548 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Add MultiStepType #59548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
silasjoisten committed Jan 18, 2025
commit a71ee28544e7bd1245a2d76027f7534dd9439aa2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public function configureOptions(OptionsResolver $resolver): void
$resolver
->setRequired('steps')
->setDefault('current_step', static function (Options $options): string {
$firstStep = array_key_first($options['steps']);
/** @var array<string, mixed> $steps */
$steps = $options['steps'];
$firstStep = array_key_first($steps);
if (!\is_string($firstStep)) {
throw new \InvalidArgumentException('The option "steps" must be an associative array.');
}
Expand Down
0