Psalm (dev-master@074780547d1db495b3ddd763e595fd5c68ab99cc) does not recognize @var Foo::* and @return Foo::*, though @param Foo::* $arg works without problems.
It seems that the parser expects the variable name (or any other string) after the "wildcarded" variable type. This may explain why @param works, but @var and @return need an extra symbol to make them work as expected, eg @var Foo::** or @var Foo::* $.
Snippet: https://psalm.dev/r/7928c2f41e.
Psalm (dev-master@074780547d1db495b3ddd763e595fd5c68ab99cc) does not recognize
@var Foo::*and@return Foo::*, though@param Foo::* $argworks without problems.It seems that the parser expects the variable name (or any other string) after the "wildcarded" variable type. This may explain why
@paramworks, but@varand@returnneed an extra symbol to make them work as expected, eg@var Foo::**or@var Foo::* $.Snippet: https://psalm.dev/r/7928c2f41e.