property and const same name

if property have same name with const, then when typing self::TEST not working hint

here is sample code

/**
* @property double $test
*/
class Kurs
{

const TEST = 10;

}

 

phpstorm 2017

 

0
3 comments

What do you mean? Should it provide type hinting when names are different? Could you please elaborate and attach screenshots illustrating the issue? I'm unfortunately not following you

0
Avatar
Permanently deleted user

why ide not hint const BAR in first example?

0

Unfortunately this works fine here:

Please try that again with all custom plugins disabled (File > Settings > Plugins: Show: Custom)

0

Please sign in to leave a comment.