Skip to content

Commit 8bbe1ae

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

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
@@ -58,11 +58,11 @@ class ArrayChoiceList implements ChoiceListInterface
5858
*
5959
* The given choice array must have the same array keys as the value array.
6060
*
61-
* @param array|\Traversable $choices The selectable choices
62-
* @param callable|null $value The callable for creating the value
63-
* for a choice. If `null` is passed,
64-
* incrementing integers are used as
65-
* values
61+
* @param iterable $choices The selectable choices
62+
* @param callable|null $value The callable for creating the value
63+
* for a choice. If `null` is passed,
64+
* incrementing integers are used as
65+
* values
6666
*/
6767
public function __construct($choices, $value = null)
6868
{

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)