Skip to content

Commit 7e78605

Browse files
committed
Fix AbstractType stub
1 parent f45b9ce commit 7e78605

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Diff for: stubs/Symfony/Component/Form/AbstractType.stub

+18
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,22 @@ namespace Symfony\Component\Form;
99
*/
1010
abstract class AbstractType implements FormTypeInterface
1111
{
12+
13+
/**
14+
* @param array<string, mixed> $options
15+
*/
16+
public function buildForm(FormBuilderInterface $builder, array $options): void;
17+
18+
/**
19+
* @param FormInterface<TData> $form
20+
* @param array<string, mixed> $options
21+
*/
22+
public function buildView(FormView $view, FormInterface $form, array $options): void;
23+
24+
/**
25+
* @param FormInterface<TData> $form
26+
* @param array<string, mixed> $options
27+
*/
28+
public function finishView(FormView $view, FormInterface $form, array $options): void;
29+
1230
}

Diff for: stubs/Symfony/Component/Form/FormTypeInterface.stub

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ interface FormTypeInterface
1313
public function buildForm(FormBuilderInterface $builder, array $options): void;
1414

1515
/**
16-
* @phpstan-param FormInterface<TData> $form
16+
* @param FormInterface<TData> $form
1717
* @param array<string, mixed> $options
1818
*/
1919
public function buildView(FormView $view, FormInterface $form, array $options): void;
2020

2121
/**
22-
* @phpstan-param FormInterface<TData> $form
22+
* @param FormInterface<TData> $form
2323
* @param array<string, mixed> $options
2424
*/
2525
public function finishView(FormView $view, FormInterface $form, array $options): void;

0 commit comments

Comments
 (0)