neild3r / vscode-php-docblocker

Simple docblocker for php
MIT License
94 stars 31 forks source link

Autocomplete for function returning reference does not work properly #57

Closed PrinsEdje80 closed 7 years ago

PrinsEdje80 commented 7 years ago

VSC 1.15.1 PHP DocBlocker 1.2.0

Create a PHP function like this in a class:

public function &someFunction() {
  return TRUE;
}

or a regulare function like this:

function &someFunction() {
  return TRUE;
}

Start with the shortcut /** and only the most basic PHPDoc beginning will be put there

/**
 *
 */

Whereas I expect to get

/**
 * Undocumented function
 *
 * @return void
 */

which is what you get if you remove the &.

jens1o commented 7 years ago

Seems to be a missing regex match...

PrinsEdje80 commented 7 years ago

Yeah, I would have figured something like that... But I have no clue about writing plugins for Visual Studio Code ;).

neild3r commented 7 years ago

This will be fixed in the next release