Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6f1868

Browse filesBrowse files
committed
Revert CachingFactoryDecorator callable declarations
1 parent b33cd3a commit e6f1868
Copy full SHA for e6f1868

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.