I have the following code:
class A {
/**
* Splitter for words
*
* @var null|string
*/
private $splitter = '-';
/**
* Desc...
*
* @param null|string $splitter @see $splitter
*/
function __construct(
$splitter = null
) {
// implementation
}
}
$a = new A();
When using CTRL+Q
in PhpStorm
to see documentation for class constructor I will see:
null|string $splitter @see $splitter
Am I doing something wrong or should PhpStorm be configured to display description for $splitter here
. I would expect here to have displayed Splitter for words
or link to $splitter
member and not just @see $splitter
.
As I checked it doesn't matter that those 2 variables have the same name - even if constructor argument name would be $s
PhpStorm still displays @see $splitter
.