minor #10129 [Form] Make FormInterface::add docblock more explicit (billhance)
This PR was merged into the 2.3 branch.
Discussion
----------
[Form] Make FormInterface::add docblock more explicit
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
When replacing a child form from within a form event, it's not obvious that you have to use the 'add' method. Though it's minor, this will save somebody a google search.
Commits
-------
23216aa
[Form] Make FormInterface::add docblock more explicit
This commit is contained in:
commit
82031dd66e
@ -39,7 +39,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
|
||||
public function getParent();
|
||||
|
||||
/**
|
||||
* Adds a child to the form.
|
||||
* Adds or replaces a child to the form.
|
||||
*
|
||||
* @param FormInterface|string|integer $child The FormInterface instance or the name of the child.
|
||||
* @param string|null $type The child's type, if a name was passed.
|
||||
|
Reference in New Issue
Block a user