I have a class that in a function has a quite long HTML part.
I've decided to move this block in a separated file and include it where I need it.
However, this file, to get data from some static method and fields, often makes use of the "self" object (eg.: self::$somefield).
The problem is that PhpStorm inspection keeps saying that self is undefined.
I know how to solve this with variables, using comments like /** @var $myvariable string */, but how can I do the same in this case?