@@ -215,7 +215,7 @@ public function withLoop(LoopInterface $loop): self
215215 /**
216216 * Manually registers a tool handler.
217217 */
218- public function withTool (\ Closure |array |string $ handler , ?string $ name = null , ?string $ description = null , ?ToolAnnotations $ annotations = null , ?array $ inputSchema = null ): self
218+ public function withTool (callable |array |string $ handler , ?string $ name = null , ?string $ description = null , ?ToolAnnotations $ annotations = null , ?array $ inputSchema = null ): self
219219 {
220220 $ this ->manualTools [] = compact ('handler ' , 'name ' , 'description ' , 'annotations ' , 'inputSchema ' );
221221
@@ -225,7 +225,7 @@ public function withTool(\Closure|array|string $handler, ?string $name = null, ?
225225 /**
226226 * Manually registers a resource handler.
227227 */
228- public function withResource (\ Closure |array |string $ handler , string $ uri , ?string $ name = null , ?string $ description = null , ?string $ mimeType = null , ?int $ size = null , ?Annotations $ annotations = null ): self
228+ public function withResource (callable |array |string $ handler , string $ uri , ?string $ name = null , ?string $ description = null , ?string $ mimeType = null , ?int $ size = null , ?Annotations $ annotations = null ): self
229229 {
230230 $ this ->manualResources [] = compact ('handler ' , 'uri ' , 'name ' , 'description ' , 'mimeType ' , 'size ' , 'annotations ' );
231231
@@ -235,7 +235,7 @@ public function withResource(\Closure|array|string $handler, string $uri, ?strin
235235 /**
236236 * Manually registers a resource template handler.
237237 */
238- public function withResourceTemplate (\ Closure |array |string $ handler , string $ uriTemplate , ?string $ name = null , ?string $ description = null , ?string $ mimeType = null , ?Annotations $ annotations = null ): self
238+ public function withResourceTemplate (callable |array |string $ handler , string $ uriTemplate , ?string $ name = null , ?string $ description = null , ?string $ mimeType = null , ?Annotations $ annotations = null ): self
239239 {
240240 $ this ->manualResourceTemplates [] = compact ('handler ' , 'uriTemplate ' , 'name ' , 'description ' , 'mimeType ' , 'annotations ' );
241241
@@ -245,7 +245,7 @@ public function withResourceTemplate(\Closure|array|string $handler, string $uri
245245 /**
246246 * Manually registers a prompt handler.
247247 */
248- public function withPrompt (\ Closure |array |string $ handler , ?string $ name = null , ?string $ description = null ): self
248+ public function withPrompt (callable |array |string $ handler , ?string $ name = null , ?string $ description = null ): self
249249 {
250250 $ this ->manualPrompts [] = compact ('handler ' , 'name ' , 'description ' );
251251
0 commit comments