Add \Traversable typehint to phpdoc
This commit is contained in:
parent
0eed690679
commit
5310f11418
@ -20,7 +20,7 @@ interface DataMapperInterface
|
||||
* Maps properties of some data to a list of forms.
|
||||
*
|
||||
* @param mixed $data Structured data
|
||||
* @param FormInterface[] $forms A list of {@link FormInterface} instances
|
||||
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
|
||||
*
|
||||
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
|
||||
*/
|
||||
@ -29,7 +29,7 @@ interface DataMapperInterface
|
||||
/**
|
||||
* Maps the data of a list of forms into the properties of some data.
|
||||
*
|
||||
* @param FormInterface[] $forms A list of {@link FormInterface} instances
|
||||
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
|
||||
* @param mixed $data Structured data
|
||||
*
|
||||
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
|
||||
|
Reference in New Issue
Block a user