From 178a185ccd3d51dfb48cc46406d981c6b6cc0b11 Mon Sep 17 00:00:00 2001 From: George Steel Date: Thu, 13 Jun 2024 12:48:18 +0100 Subject: [PATCH] Refine argument to `attachByName` to limit possible class-string args to descendants of `FilterInterface` Signed-off-by: George Steel --- src/FilterChain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterChain.php b/src/FilterChain.php index 49009c73..2a12972c 100644 --- a/src/FilterChain.php +++ b/src/FilterChain.php @@ -180,7 +180,7 @@ public function attach(FilterInterface|callable $callback, int $priority = self: * Retrieves the filter from the attached plugin manager, and then calls attach() * with the retrieved instance. * - * @param class-string|string $name + * @param class-string|string $name * @param int $priority Priority at which to enqueue filter; defaults to 1000 (higher executes earlier) * @return self */