From 8f5d1ca794811903546a8b7f782a106fe34443a3 Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Mon, 12 Aug 2019 23:34:00 +0300 Subject: [PATCH] Add false type to ChoiceListFactoryInterface::createView $label argument --- .../Factory/ChoiceListFactoryInterface.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Symfony/Component/Form/ChoiceList/Factory/ChoiceListFactoryInterface.php b/src/Symfony/Component/Form/ChoiceList/Factory/ChoiceListFactoryInterface.php index ac6c3bcfa3..04e414df5a 100644 --- a/src/Symfony/Component/Form/ChoiceList/Factory/ChoiceListFactoryInterface.php +++ b/src/Symfony/Component/Form/ChoiceList/Factory/ChoiceListFactoryInterface.php @@ -78,14 +78,11 @@ interface ChoiceListFactoryInterface * attributes that should be added to the respective choice. * * @param array|callable|null $preferredChoices The preferred choices - * @param callable|null $label The callable generating the - * choice labels - * @param callable|null $index The callable generating the - * view indices - * @param callable|null $groupBy The callable generating the - * group names - * @param array|callable|null $attr The callable generating the - * HTML attributes + * @param callable|false|null $label The callable generating the choice labels; + * pass false to discard the label + * @param callable|null $index The callable generating the view indices + * @param callable|null $groupBy The callable generating the group names + * @param array|callable|null $attr The callable generating the HTML attributes * * @return ChoiceListView The choice list view */