Skip to content

Commit 7b6161c

Browse files
committed
minor #11934 [Form] Fix PHPDoc for builder setData methods (MisatoTremor)
This PR was merged into the 2.3 branch. Discussion ---------- [Form] Fix PHPDoc for builder setData methods | Q | A | ------------- | --- | Fixed tickets | #11933 | License | MIT The underlying data variable is typed as mixed whereas the methods paramers where typed as array. The method is also described to accept objects, etc. in the documentation. Commits ------- c207d1d [Form] Fix PHPDoc for builder setData methods The underlying data variable is typed as mixed whereas the methods paramers where typed as array.
2 parents d853c0d + c207d1d commit 7b6161c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Form/ButtonBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public function setType(ResolvedFormTypeInterface $type)
425425
*
426426
* This method should not be invoked.
427427
*
428-
* @param array $data
428+
* @param mixed $data
429429
*
430430
* @throws BadMethodCallException
431431
*/

src/Symfony/Component/Form/FormConfigBuilderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function setType(ResolvedFormTypeInterface $type);
212212
/**
213213
* Sets the initial data of the form.
214214
*
215-
* @param array $data The data of the form in application format.
215+
* @param mixed $data The data of the form in application format.
216216
*
217217
* @return self The configuration object.
218218
*/

0 commit comments

Comments
 (0)