Open Indeedornot opened 1 month ago
In the linked phpstan ticket it's suggested to just use static
. Does that work? Resolving a template that has templated type args is not supported. I don't think psalm or phpstan support this either.
/** @return static */
public function unique();
Describe the bug I am attempting to for the time being try to remove phpstan issues from issue #11398 Phpstan however the generic template parameter of Enumerable is not properly inferred by intelephense
To Reproduce
Expected behavior return type of
$this->unique()
is properly inferred from phpdocsScreenshots If applicable, add screenshots to help explain your problem.
Platform and version v1.11.5 Windows 11 23H2 VScode 1.91.1