Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit e448d66

Browse files
committed
Merge branch 'hotfix/31'
Close #31
2 parents bded51b + 498e6ab commit e448d66

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- Nothing.
21+
- [#31](https://github.com/zendframework/zend-inputfilter/pull/31) updates the
22+
`InputFilterInterface::add()` docblock to match existing, shipped implementations.
2223

2324
## 2.5.4 - 2015-08-11
2425

src/InputFilterInterface.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ interface InputFilterInterface extends Countable
1919
/**
2020
* Add an input to the input filter
2121
*
22-
* @param InputInterface|InputFilterInterface|array $input
22+
* @param InputInterface|InputFilterInterface|array|Traversable $input
23+
* Implementations MUST handle at least one of the specified types, and
24+
* raise an exception for any they cannot process.
2325
* @param null|string $name Name used to retrieve this input
2426
* @return InputFilterInterface
27+
* @throws Exception\InvalidArgumentInterface if unable to handle the input type.
2528
*/
2629
public function add($input, $name = null);
2730

0 commit comments

Comments
 (0)