Closed jeremyvii closed 4 years ago
Describe the bug If the first function parameter has a type and the second parameter doesn't, the latter is ignored in PHP.
Expected behavior
<?php /** * [test description] * * @param int $foo * [$foo description] * @param [type] $bar * [$bar description] * * @return [type] * [return description] */ function test(int $foo, $bar) { }
Code Snippet
<?php /** * [test description] * * @param int $bar * [$bar description] * * @return [type] * [return description] */ function test(int $foo, $bar) { }
Enviroment (please complete the following information):
I am betting it is because this function isn't resetting expectParameterType flag after adding the name https://github.com/jeremyvii/vs-docblockr/blob/master/src/languages/php.ts#L221
expectParameterType
Describe the bug If the first function parameter has a type and the second parameter doesn't, the latter is ignored in PHP.
Expected behavior
Code Snippet
Enviroment (please complete the following information):