From a14a5f34f3a6b69394282e724745491c502936a0 Mon Sep 17 00:00:00 2001 From: simonyang08 Date: Sat, 22 Aug 2026 14:06:40 +0800 Subject: [PATCH] fix: specify closure handler signature --- src/Capability/Registry/ElementReference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Capability/Registry/ElementReference.php b/src/Capability/Registry/ElementReference.php index a49b2eb3..6df359a0 100644 --- a/src/Capability/Registry/ElementReference.php +++ b/src/Capability/Registry/ElementReference.php @@ -12,7 +12,7 @@ namespace Mcp\Capability\Registry; /** - * @phpstan-type Handler \Closure|array{0: object|string, 1: string}|string + * @phpstan-type Handler (\Closure(mixed...): mixed)|array{0: object|string, 1: string}|string * * @author Kyrian Obikwelu */