mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-07 08:26:11 +00:00
Add requiredParameterCount to SymbolDefinition and MethodSignature, enabling range-based arity filtering in filterCallableCandidates. Calls with omitted optional/default arguments now resolve correctly. Supported: TS, Python, Kotlin, C#, C++, PHP, Ruby (7 languages). Detection via OPTIONAL_PARAM_TYPES set + hasDefaultValue helper. 9 integration tests added across all 7 languages.
10 lines
181 B
PHP
10 lines
181 B
PHP
<?php
|
|
|
|
function greet(string $name, string $greeting = "Hello"): string {
|
|
return "$greeting, $name";
|
|
}
|
|
|
|
function process(): void {
|
|
greet("Alice");
|
|
greet("Bob", "Hi");
|
|
}
|