@@ -33,7 +33,7 @@ interface ChoiceListFactoryInterface
33
33
*
34
34
* @param callable|null $filter The callable filtering the choices
35
35
*/
36
- public function createListFromChoices (iterable $ choices , callable $ value = null , callable $ filter = null ): ChoiceListInterface ;
36
+ public function createListFromChoices (iterable $ choices , ? callable $ value = null , ? callable $ filter = null ): ChoiceListInterface ;
37
37
38
38
/**
39
39
* Creates a choice list that is loaded with the given loader.
@@ -44,7 +44,7 @@ public function createListFromChoices(iterable $choices, callable $value = null,
44
44
*
45
45
* @param callable|null $filter The callable filtering the choices
46
46
*/
47
- public function createListFromLoader (ChoiceLoaderInterface $ loader , callable $ value = null , callable $ filter = null ): ChoiceListInterface ;
47
+ public function createListFromLoader (ChoiceLoaderInterface $ loader , ? callable $ value = null , ? callable $ filter = null ): ChoiceListInterface ;
48
48
49
49
/**
50
50
* Creates a view for the given choice list.
@@ -78,5 +78,5 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $va
78
78
* @param array|callable|null $attr The callable generating the HTML attributes
79
79
* @param array|callable $labelTranslationParameters The parameters used to translate the choice labels
80
80
*/
81
- public function createView (ChoiceListInterface $ list , array |callable $ preferredChoices = null , callable |false $ label = null , callable $ index = null , callable $ groupBy = null , array |callable $ attr = null , array |callable $ labelTranslationParameters = []): ChoiceListView ;
81
+ public function createView (ChoiceListInterface $ list , array |callable | null $ preferredChoices = null , callable |false | null $ label = null , ? callable $ index = null , ? callable $ groupBy = null , array |callable | null $ attr = null , array |callable $ labelTranslationParameters = []): ChoiceListView ;
82
82
}
0 commit comments