You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also it's actually class-string-map<T as Foo, T> (not "of") - with psalm having a bug report for it previously vimeo/psalm#10095 - so both need to be supported
Activity
mspirkov commentedon Dec 7, 2025
I will add support for this type in the second version.
mspirkov commentedon Dec 7, 2025
Apparently,
phpstan/phpdoc-parserdoes not support this type. Untilphpstan/phpdoc-parsersupports this type, we won't be able to do anything.kkmuffme commentedon Dec 7, 2025
Yes, there's an issue open for that phpstan/phpstan#9521
kkmuffme commentedon Dec 15, 2025
Also it's actually
class-string-map<T as Foo, T>(not "of") - with psalm having a bug report for it previously vimeo/psalm#10095 - so both need to be supportedkkmuffme commentedon Dec 31, 2025
class-string-map<T, T>without any type specification is valid too (as per the OP link, however it's often overlooked)Support psalm's class-string-map<T of Foo, T> utility type