PHPDoc doesn't print correctly

PHP Code:

/**
* Description of function
* @param    string    $variable   Description of variable
* @return    int                 Description of returned value
*/
function test($variable) {
return 0;
}

And if I call this function, i get a popup like this:

    int test(string $variable)
    Description of function
    @param    string    $variable   Description of variable
    @return    int                 Description of returned value

It’s normal?

I think I must get a popup like this:

    int test(string $variable)
    Description of function
    $variable - Description of variable
    return int

Where i can change print pattern for PHPDoc?

I don’t think you can easily change how this is printed. And the reason for it to be printed the way it is is likely to be able to cover many different use-cases. @toddw will likely know more about this.

The PHPDoc/JSDoc is currently getting parsed and the PHPDoc comments are dropped. There is a bug on this here:
https://bugs.activestate.com/show_bug.cgi?id=73488

For anyone wanting to dig into the code - it’s here:

I’m a necromancer a bit because answering in this old topic is strange, but anyway I’m playing with lang_php.py to get nice tooltips for PHP.