merged branch bschussek/set-data-stofs (PR #7899)

This PR was merged into the master branch.

Discussion
----------

[Form] Fixed stofs from #7878

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

1939dfc [Form] Fixed stofs from #7878
This commit is contained in:
Fabien Potencier 2013-05-02 18:59:37 +02:00
commit 4902626511
2 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ class Button implements \IteratorAggregate, FormInterface
*/
public function initialize()
{
throw new BadMethodCallException('Buttons cannot be initialized. Call initialized() on the root form instead.');
throw new BadMethodCallException('Buttons cannot be initialized. Call initialize() on the root form instead.');
}
/**

View File

@ -790,21 +790,21 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
/**
* Unsupported method.
*
* @return null Always returns null.
* @return Boolean Always returns false.
*/
public function getAutoInitialize()
{
return null;
return false;
}
/**
* Unsupported method.
*
* @return null Always returns null.
* @return Boolean Always returns false.
*/
public function getInheritData()
{
return null;
return false;
}
/**