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

8f5d1ca794 Add false type to ChoiceListFactoryInterface::createView $label argument
This commit is contained in:
Nicolas Grekas 2019-08-13 08:29:35 +02:00
commit 502be37d1f
1 changed files with 5 additions and 8 deletions

View File

@ -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
*/