@@ -35,7 +35,7 @@ class DefaultChoiceListFactory implements ChoiceListFactoryInterface
3535 *
3636 * @param callable|null $filter
3737 */
38- public function createListFromChoices (iterable $ choices , callable $ value = null /* , callable $filter = null */ )
38+ public function createListFromChoices (iterable $ choices , ? callable $ value = null /* , callable $filter = null */ )
3939 {
4040 $ filter = \func_num_args () > 2 ? func_get_arg (2 ) : null ;
4141
@@ -56,7 +56,7 @@ public function createListFromChoices(iterable $choices, callable $value = null/
5656 *
5757 * @param callable|null $filter
5858 */
59- public function createListFromLoader (ChoiceLoaderInterface $ loader , callable $ value = null /* , callable $filter = null */ )
59+ public function createListFromLoader (ChoiceLoaderInterface $ loader , ? callable $ value = null /* , callable $filter = null */ )
6060 {
6161 $ filter = \func_num_args () > 2 ? func_get_arg (2 ) : null ;
6262
@@ -72,7 +72,7 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $va
7272 *
7373 * @param array|callable $labelTranslationParameters The parameters used to translate the choice labels
7474 */
75- public function createView (ChoiceListInterface $ list , $ preferredChoices = null , $ label = null , callable $ index = null , callable $ groupBy = null , $ attr = null /* , $labelTranslationParameters = [] */ )
75+ public function createView (ChoiceListInterface $ list , $ preferredChoices = null , $ label = null , ? callable $ index = null , ? callable $ groupBy = null , $ attr = null /* , $labelTranslationParameters = [] */ )
7676 {
7777 $ labelTranslationParameters = \func_num_args () > 6 ? func_get_arg (6 ) : [];
7878 $ preferredViews = [];
0 commit comments