Commit 5738bb7
committed
feat: implement variadic parameter handling in ReferenceHandler
- Add support for variadic parameters (...) in prepareArguments method
- Collect all numeric-indexed arguments starting from parameter position
- Add proper error handling for variadic parameter processing
- Remove TODO comment and complete the implementation
- Maintain backward compatibility with existing parameter handling
Fixes the TODO item in ReferenceHandler.php line 88 and enables
proper handling of functions with variadic parameters in MCP tools
and resources.1 parent 9590e9c commit 5738bb7
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
| |||
0 commit comments