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:
Fabien Potencier 2014-01-25 11:04:07 +01:00
commit 82031dd66e

View File

@ -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.