Skip to content

Commit 4067e47

Browse files
Merge branch '4.4' into 5.2
* 4.4: Backport type fixes uzb translation [DependencyInjection] Fix doc blocks [DependencyInjection] Turn $defaultDeprecationTemplate into a constant [Form] better form doc types to support static analysis
2 parents ca3942c + afd8c59 commit 4067e47

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

FormBuilderInterface.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* @author Bernhard Schussek <[email protected]>
16+
*
17+
* @extends \Traversable<string, self>
1618
*/
1719
interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuilderInterface
1820
{
@@ -24,6 +26,7 @@ interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuild
2426
* object hierarchy.
2527
*
2628
* @param string|FormBuilderInterface $child
29+
* @param array<string, mixed> $options
2730
*
2831
* @return self
2932
*/
@@ -32,8 +35,9 @@ public function add($child, string $type = null, array $options = []);
3235
/**
3336
* Creates a form builder.
3437
*
35-
* @param string $name The name of the form or the name of the property
36-
* @param string|null $type The type of the form or null if name is a property
38+
* @param string $name The name of the form or the name of the property
39+
* @param string|null $type The type of the form or null if name is a property
40+
* @param array<string, mixed> $options
3741
*
3842
* @return self
3943
*/
@@ -65,7 +69,7 @@ public function has(string $name);
6569
/**
6670
* Returns the children.
6771
*
68-
* @return array
72+
* @return array<string, self>
6973
*/
7074
public function all();
7175

FormConfigInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function getAutoInitialize();
228228
/**
229229
* Returns all options passed during the construction of the form.
230230
*
231-
* @return array The passed options
231+
* @return array<string, mixed> The passed options
232232
*/
233233
public function getOptions();
234234

FormTypeInterface.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ interface FormTypeInterface
2424
* This method is called for each type in the hierarchy starting from the
2525
* top most type. Type extensions can further modify the form.
2626
*
27+
* @param array<string, mixed> $options
28+
*
2729
* @see FormTypeExtensionInterface::buildForm()
2830
*/
2931
public function buildForm(FormBuilderInterface $builder, array $options);
@@ -38,6 +40,8 @@ public function buildForm(FormBuilderInterface $builder, array $options);
3840
* This means that you cannot access child views in this method. If you need
3941
* to do so, move your logic to {@link finishView()} instead.
4042
*
43+
* @param array<string, mixed> $options
44+
*
4145
* @see FormTypeExtensionInterface::buildView()
4246
*/
4347
public function buildView(FormView $view, FormInterface $form, array $options);
@@ -53,6 +57,8 @@ public function buildView(FormView $view, FormInterface $form, array $options);
5357
* such logic in this method that actually accesses child views. For everything
5458
* else you are recommended to implement {@link buildView()} instead.
5559
*
60+
* @param array<string, mixed> $options
61+
*
5662
* @see FormTypeExtensionInterface::finishView()
5763
*/
5864
public function finishView(FormView $view, FormInterface $form, array $options);

0 commit comments

Comments
 (0)