imliam / vscode-inline-parameters

An extension for Visual Studio Code that adds inline parameter annotations when calling a function.
https://marketplace.visualstudio.com/items?itemName=liamhammett.inline-parameters
MIT License
196 stars 22 forks source link

Parameter order incorrect in php #65

Open KirosML opened 1 month ago

KirosML commented 1 month ago

When phpdoc doesn't match actual order of params or misses params, inline parameters are incorrect:

/**
 * @param Countable|iterable $haystack
 */
public function assertCount(int $expectedCount, $haystack, string $message = "")

Shows up as:

$I->assertCount(haystack: 1, expectedCount: $array);