From c44e8f1899d3c4db3bab3f8b3aa5bd3130cfe62e Mon Sep 17 00:00:00 2001 From: George Steel Date: Wed, 14 Aug 2024 10:33:52 +0100 Subject: [PATCH] Call out signature changes in `FilterInterface` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Frank Brückner Signed-off-by: George Steel --- docs/book/v3/migration/v2-to-v3.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/book/v3/migration/v2-to-v3.md b/docs/book/v3/migration/v2-to-v3.md index b0324fd7..2b5cd0fe 100644 --- a/docs/book/v3/migration/v2-to-v3.md +++ b/docs/book/v3/migration/v2-to-v3.md @@ -31,6 +31,8 @@ final class MyFilter implements Laminas\Filter\FilterInterface { } ``` +#### Change of Parameter and Return Type + Also note that the signature of both `filter()` and `__invoke()` has changed to include `mixed` as both parameter and return type, therefore, it will be necessary to add any missing parameter and return types to your custom filters. ### Filter Plugin Manager