Skip to content

Commit bc77606

Browse files
committed
Fix
1 parent 3f74429 commit bc77606

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Symfony/Component/Form/Extension/Core/Type/MultiStepType.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
/*
@@ -42,9 +51,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
4251

4352
if (\is_callable($currentStep)) {
4453
$currentStep($builder, $options);
45-
} elseif(\is_string($currentStep)) {
54+
} elseif (\is_string($currentStep)) {
4655
if (!class_exists($currentStep) || !is_a($currentStep, AbstractType::class)) {
47-
throw new \InvalidArgumentException(sprintf('The form class "%s" does not exist.', $currentStep));
56+
throw new \InvalidArgumentException(\sprintf('The form class "%s" does not exist.', $currentStep));
4857
}
4958

5059
$builder->add($options['current_step_name'], $currentStep, $options);

0 commit comments

Comments
 (0)