8000 Revert CachingFactoryDecorator callable declarations · symfony/symfony@e6f1868 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6f1868

Browse files
committed
Revert CachingFactoryDecorator callable declarations
1 parent b33cd3a commit e6f1868

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getDecoratedFactory()
8181
/**
8282
* {@inheritdoc}
8383
*/
84-
public function createListFromChoices(iterable $choices, callable $value = null)
84+
public function createListFromChoices(iterable $choices, $value = null)
8585
{
8686
if ($choices instanceof \Traversable) {
8787
$choices = iterator_to_array($choices);
@@ -102,7 +102,7 @@ public function createListFromChoices(iterable $choices, callable $value = null)
102102
/**
103103
* {@inheritdoc}
104104
*/
105-
public function createListFromLoader(ChoiceLoaderInterface $loader, callable $value = null)
105+
public function createListFromLoader(ChoiceLoaderInterface $loader, $value = null)
106106
{
107107
$hash = self::generateHash([$loader, $value], 'fromLoader');
108108

@@ -116,7 +116,7 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $va
116116
/**
117117
* {@inheritdoc}
118118
*/
119-
public function createView(ChoiceListInterface $list, $preferredChoices = null, callable $label = null, callable $index = null, callable $groupBy = null, $attr = null)
119+
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, $index = null, $groupBy = null, $attr = null)
120120
{
121121
// The input is not validated on purpose. This way, the decorated
122122
// factory may decide which input to accept and which not.

0 commit comments

Comments
 (0)
0