Skip to content

Commit 70607a7

Browse files
MetalArendfabpot
authored andcommitted
Add \Traversable typehint to phpdoc
1 parent c4b0de7 commit 70607a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DataMapperInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ interface DataMapperInterface
1919
/**
2020
* Maps properties of some data to a list of forms.
2121
*
22-
* @param mixed $data Structured data
23-
* @param FormInterface[] $forms A list of {@link FormInterface} instances
22+
* @param mixed $data Structured data
23+
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
2424
*
2525
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
2626
*/
@@ -29,8 +29,8 @@ public function mapDataToForms($data, $forms);
2929
/**
3030
* Maps the data of a list of forms into the properties of some data.
3131
*
32-
* @param FormInterface[] $forms A list of {@link FormInterface} instances
33-
* @param mixed $data Structured data
32+
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
33+
* @param mixed $data Structured data
3434
*
3535
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
3636
*/

0 commit comments

Comments
 (0)