Skip to content

Commit 482945c

Browse files
Merge branch '2.8' into 3.3
* 2.8: [SecurityBundle] Fix syntax error in test [Console] Remove remaining dead code bumped Symfony version to 2.8.32 bumped Symfony version to 2.7.39 updated VERSION for 2.8.31 updated CHANGELOG for 2.8.31 updated VERSION for 2.7.38 updated CHANGELOG for 2.7.38 Replace array|\Traversable by iterable Fix ambiguous pattern
2 parents 8559613 + 8bbe1ae commit 482945c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ChoiceList/ArrayChoiceList.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ class ArrayChoiceList implements ChoiceListInterface
5656
*
5757
* The given choice array must have the same array keys as the value array.
5858
*
59-
* @param array|\Traversable $choices The selectable choices
60-
* @param callable|null $value The callable for creating the value
61-
* for a choice. If `null` is passed,
62-
* incrementing integers are used as
63-
* values
59+
* @param iterable $choices The selectable choices
60+
* @param callable|null $value The callable for creating the value
61+
* for a choice. If `null` is passed,
62+
* incrementing integers are used as
63+
* values
6464
*/
6565
public function __construct($choices, callable $value = null)
6666
{

ChoiceList/Factory/ChoiceListFactoryInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ interface ChoiceListFactoryInterface
3131
* The callable receives the choice as first and the array key as the second
3232
* argument.
3333
*
34-
* @param array|\Traversable $choices The choices
35-
* @param null|callable $value The callable generating the choice
36-
* values
34+
* @param iterable $choices The choices
35+
* @param null|callable $value The callable generating the choice
36+
* values
3737
*
3838
* @return ChoiceListInterface The choice list
3939
*/

ChoiceList/Factory/PropertyAccessDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getDecoratedFactory()
6363
/**
6464
* {@inheritdoc}
6565
*
66-
* @param array|\Traversable $choices The choices
66+
* @param iterable $choices The choices
6767
* @param null|callable|string|PropertyPath $value The callable or path for
6868
* generating the choice values
6969
*

0 commit comments

Comments
 (0)