Skip to content

Commit 675703d

Browse files
Add FormTypeExtensionInterface stub
1 parent 9da032e commit 675703d

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

extension.neon

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ parameters:
1111
- stubs/ExtensionInterface.stub
1212
- stubs/FormBuilderInterface.stub
1313
- stubs/FormInterface.stub
14+
- stubs/FormTypeExtensionInterface.stub
1415
- stubs/FormTypeInterface.stub
1516
- stubs/FormView.stub
1617
- stubs/HeaderBag.stub

stubs/FormTypeExtensionInterface.stub

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Symfony\Component\Form;
4+
5+
interface FormTypeExtensionInterface
6+
{
7+
/**
8+
* @param array<string, mixed> $options
9+
*/
10+
public function buildForm(FormBuilderInterface $builder, array $options): void;
11+
12+
/**
13+
* @param array<string, mixed> $options
14+
*/
15+
public function buildView(FormView $view, FormInterface $form, array $options): void;
16+
17+
/**
18+
* @param array<string, mixed> $options
19+
*/
20+
public function finishView(FormView $view, FormInterface $form, array $options): void;
21+
}

stubs/FormTypeInterface.stub

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ namespace Symfony\Component\Form;
55
interface FormTypeInterface
66
{
77
/**
8-
* @param array<mixed> $options
8+
* @param array<string, mixed> $options
99
*/
1010
public function buildForm(FormBuilderInterface $builder, array $options): void;
1111

1212
/**
13-
* @param array<mixed> $options
13+
* @param array<string, mixed> $options
1414
*/
1515
public function buildView(FormView $view, FormInterface $form, array $options): void;
1616

1717
/**
18-
* @param array<mixed> $options
18+
* @param array<string, mixed> $options
1919
*/
2020
public function finishView(FormView $view, FormInterface $form, array $options): void;
2121
}

0 commit comments

Comments
 (0)