Skip to content

Commit

Permalink
Refine argument to attachByName to limit possible class-string args…
Browse files Browse the repository at this point in the history
… to descendants of `FilterInterface`

Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jun 13, 2024
1 parent fe832dd commit 178a185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilterChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<FilterInterface>|string $name
* @param int $priority Priority at which to enqueue filter; defaults to 1000 (higher executes earlier)
* @return self
*/
Expand Down

0 comments on commit 178a185

Please sign in to comment.