Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mixed parameter and return types to FilterInterface #111

Merged
merged 6 commits into from
Nov 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add mixed return type and parameter type to the FilterInterface
Signed-off-by: George Steel <[email protected]>
gsteel committed Nov 6, 2023
commit 54bd17e4174a4199448a16f7847a45317093a431
6 changes: 3 additions & 3 deletions src/FilterInterface.php
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ interface FilterInterface
/**
* Returns the result of filtering $value
*
* @param mixed $value
* @throws Exception\RuntimeException If filtering $value is impossible.
* @return mixed
*/
public function filter($value);
public function filter(mixed $value): mixed;

public function __invoke(mixed $value): mixed;
}