Skip to content

Commit 4902626

Browse files
committed
merged branch bschussek/set-data-stofs (PR symfony#7899)
This PR was merged into the master branch. Discussion ---------- [Form] Fixed stofs from symfony#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 symfony#7878
2 parents 36a8194 + 1939dfc commit 4902626

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Component/Form/Button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function isSynchronized()
350350
*/
351351
public function initialize()
352352
{
353-
throw new BadMethodCallException('Buttons cannot be initialized. Call initialized() on the root form instead.');
353+
throw new BadMethodCallException('Buttons cannot be initialized. Call initialize() on the root form instead.');
354354
}
355355

356356
/**

src/Symfony/Component/Form/ButtonBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -790,21 +790,21 @@ public function getRequestHandler()
790790
/**
791791
* Unsupported method.
792792
*
793-
* @return null Always returns null.
793+
* @return Boolean Always returns false.
794794
*/
795795
public function getAutoInitialize()
796796
{
797-
return null;
797+
return false;
798798
}
799799

800800
/**
801801
* Unsupported method.
802802
*
803-
* @return null Always returns null.
803+
* @return Boolean Always returns false.
804804
*/
805805
public function getInheritData()
806806
{
807-
return null;
807+
return false;
808808
}
809809

810810
/**

0 commit comments

Comments
 (0)