(done) Implementing interface (through Suggestions) return t
Posted: September 6th, 2018, 3:11 pm
Hi,
Using the Suggestion icon to implement an interface in a class disregards the return types as defined in the interface.
Interface example:
When using implementing via Suggestion i only get the comment block (with return type specified), but without the actual return type declaration behind the function like this:
I was expecting something like this:
Also, a nice to have feature would be to have a option to in- or exclude the doc comments when using the Suggestions to auto-implement stuff and to in- or exclude the comment (//TODO: ) inside the empty function it generates.
PHP Tools 1.29.10924.2017
VS Enterprise 2017 15.8.2
Using the Suggestion icon to implement an interface in a class disregards the return types as defined in the interface.
Interface example:
- Code: Select all
interface ISomeInterface
{
public function someFunction() : string;
}
When using implementing via Suggestion i only get the comment block (with return type specified), but without the actual return type declaration behind the function like this:
- Code: Select all
/**
*
* @return string
*/
function someFunction()
{
// TODO: implement the function ISomeInterface::someFunction
}
I was expecting something like this:
- Code: Select all
function someFunction() : string
{
// TODO: implement the function ISomeInterface::someFunction
}
Also, a nice to have feature would be to have a option to in- or exclude the doc comments when using the Suggestions to auto-implement stuff and to in- or exclude the comment (//TODO: ) inside the empty function it generates.
PHP Tools 1.29.10924.2017
VS Enterprise 2017 15.8.2