[Form] Fixed stofs from #7878

This commit is contained in:
Bernhard Schussek 2013-05-02 09:53:57 +02:00
parent 36a8194c95
commit 1939dfc5fc
2 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ class Button implements \IteratorAggregate, FormInterface
*/ */
public function initialize() 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. * Unsupported method.
* *
* @return null Always returns null. * @return Boolean Always returns false.
*/ */
public function getAutoInitialize() public function getAutoInitialize()
{ {
return null; return false;
} }
/** /**
* Unsupported method. * Unsupported method.
* *
* @return null Always returns null. * @return Boolean Always returns false.
*/ */
public function getInheritData() public function getInheritData()
{ {
return null; return false;
} }
/** /**