8000 Add false type to ChoiceListFactoryInterface::createView $label argument · symfony/symfony@8f5d1ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f5d1ca

Browse files
committed
Add false type to ChoiceListFactoryInterface::createView $label argument
1 parent fcdc61a commit 8f5d1ca

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)
0