8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78eaf54 commit 4677e42Copy full SHA for 4677e42
form/data_mappers.rst
@@ -98,7 +98,7 @@ in your form type::
98
/**
99
* @param Color|null $viewData
100
*/
101
- public function mapDataToForms($viewData, iterable $forms): void
+ public function mapDataToForms($viewData, \Traversable $forms): void
102
{
103
// there is no data yet, so nothing to prepopulate
104
if (null === $viewData) {
@@ -119,7 +119,7 @@ in your form type::
119
$forms['blue']->setData($viewData->getBlue());
120
}
121
122
- public function mapFormsToData(iterable $forms, &$viewData): void
+ public function mapFormsToData(\Traversable $forms, &$viewData): void
123
124
/** @var FormInterface[] $forms */
125
$forms = iterator_to_array($forms);
0 commit comments