Skip to content

Commit 502be37

Browse files
minor #33131 [Form] Add bool type to ChoiceListFactoryInterface::createView $label argument (vudaltsov)
This PR was merged into the 3.4 branch. Discussion ---------- [Form] Add bool type to ChoiceListFactoryInterface::createView $label argument | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Replaces #33074 Ping @nicolas-grekas , @Tobion , @yceruto . Commits ------- 8f5d1ca Add false type to ChoiceListFactoryInterface::createView $label argument
2 parents fcdc61a + 8f5d1ca commit 502be37

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/Symfony/Component/Form/ChoiceList/Factory/ChoiceListFactoryInterface.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,11 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
7878
* attributes that should be added to the respective choice.
7979
*
8080
* @param array|callable|null $preferredChoices The preferred choices
81-
* @param callable|null $label The callable generating the
82-
* choice labels
83-
* @param callable|null $index The callable generating the
84-
* view indices
85-
* @param callable|null $groupBy The callable generating the
86-
* group names
87-
* @param array|callable|null $attr The callable generating the
88-
* HTML attributes
81+
* @param callable|false|null $label The callable generating the choice labels;
82+
* pass false to discard the label
83+
* @param callable|null $index The callable generating the view indices
84+
* @param callable|null $groupBy The callable generating the group names
85+
* @param array|callable|null $attr The callable generating the HTML attributes
8986
*
9087
* @return ChoiceListView The choice list view
9188
*/

0 commit comments

Comments
 (0)