@@ -82,12 +82,12 @@ public function getDecoratedFactory()
82
82
/**
83
83
* {@inheritdoc}
84
84
*
85
- * @param callable|Cache\ChoiceValue|null $value The callable or static option for
86
- * generating the choice values
87
- * @param callable|Cache\ChoiceFilter|null $filter The callable or static option for
88
- * filtering the choices
85
+ * @param callable|string| Cache\ChoiceValue|null $value The callable or static option for
86
+ * generating the choice values
87
+ * @param callable|string| Cache\ChoiceFilter|null $filter The callable or static option for
88
+ * filtering the choices
89
89
*/
90
- public function createListFromChoices (iterable $ choices , callable |Cache \ChoiceValue $ value = null , callable |Cache \ChoiceFilter $ filter = null )
90
+ public function createListFromChoices (iterable $ choices , callable |string | Cache \ChoiceValue $ value = null , callable | string |Cache \ChoiceFilter $ filter = null )
91
91
{
92
92
if ($ choices instanceof \Traversable) {
93
93
$ choices = iterator_to_array ($ choices );
@@ -125,12 +125,12 @@ public function createListFromChoices(iterable $choices, callable|Cache\ChoiceVa
125
125
*
126
126
* @param ChoiceLoaderInterface|Cache\ChoiceLoader $loader The loader or static loader to load
127
127
* the choices lazily
128
- * @param callable|Cache\ChoiceValue|null $value The callable or static option for
128
+ * @param callable|string| Cache\ChoiceValue|null $value The callable or static option for
129
129
* generating the choice values
130
- * @param callable|Cache\ChoiceFilter|null $filter The callable or static option for
130
+ * @param callable|string| Cache\ChoiceFilter|null $filter The callable or static option for
131
131
* filtering the choices
132
132
*/
133
- public function createListFromLoader (ChoiceLoaderInterface $ loader , callable |Cache \ChoiceValue $ value = null , callable |Cache \ChoiceFilter $ filter = null )
133
+ public function createListFromLoader (ChoiceLoaderInterface | Cache \ ChoiceLoader $ loader , callable |string | Cache \ChoiceValue $ value = null , callable | string |Cache \ChoiceFilter $ filter = null )
134
134
{
135
135
$ cache = true ;
136
136
@@ -168,14 +168,14 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable|Cac
168
168
/**
169
169
* {@inheritdoc}
170
170
*
171
- * @param array|callable|Cache\PreferredChoice|null $preferredChoices The preferred choices
172
- * @param callable|false|Cache\ChoiceLabel|null $label The option or static option generating the choice labels
173
- * @param callable|Cache\ChoiceFieldName|null $index The option or static option generating the view indices
174
- * @param callable|Cache\GroupBy|null $groupBy The option or static option generating the group names
175
- * @param array|callable|Cache\ChoiceAttr|null $attr The option or static option generating the HTML attributes
176
- * @param array|callable|Cache\ChoiceTranslationParameters $labelTranslationParameters The parameters used to translate the choice labels
171
+ * @param array|callable|string| Cache\PreferredChoice|null $preferredChoices The preferred choices
172
+ * @param callable|false|string| Cache\ChoiceLabel|null $label The option or static option generating the choice labels
173
+ * @param callable|string| Cache\ChoiceFieldName|null $index The option or static option generating the view indices
174
+ * @param callable|string| Cache\GroupBy|null $groupBy The option or static option generating the group names
175
+ * @param array|callable|string| Cache\ChoiceAttr|null $attr The option or static option generating the HTML attributes
176
+ * @param array|callable|string| Cache\ChoiceTranslationParameters $labelTranslationParameters The parameters used to translate the choice labels
177
177
*/
178
- public function createView (ChoiceListInterface $ list , array |callable |Cache \PreferredChoice $ preferredChoices = null , callable |false |Cache \ChoiceLabel $ label = null , callable |Cache \ChoiceFieldName $ index = null , callable |Cache \GroupBy $ groupBy = null , array |callable |Cache \ChoiceAttr $ attr = null , array |callable |Cache \ChoiceTranslationParameters $ labelTranslationParameters = [])
178
+ public function createView (ChoiceListInterface $ list , array |callable |string | Cache \PreferredChoice $ preferredChoices = null , callable |false |string | Cache \ChoiceLabel $ label = null , callable |string | Cache \ChoiceFieldName $ index = null , callable |string | Cache \GroupBy $ groupBy = null , array |callable |string | Cache \ChoiceAttr $ attr = null , array |callable | string |Cache \ChoiceTranslationParameters $ labelTranslationParameters = [])
179
179
{
180
180
$ cache = true ;
181
181
0 commit comments