phpstan / phpdoc-parser

Next-gen phpDoc parser with support for intersection types and generics
MIT License
1.31k stars 62 forks source link

Generic type aliases #231

Open MidnightDesign opened 7 months ago

MidnightDesign commented 7 months ago

I'm starting to implement phpstan/phpstan#6099

@ondrejmirtes Am I heading in the right direction?

jiripudil commented 6 months ago

Hi, there's been a similar effort for generic callable types, and I think the recommendation from there might apply to your PR as well: https://github.com/phpstan/phpdoc-parser/pull/199#pullrequestreview-1702914878

MidnightDesign commented 6 months ago

@jiripudil Thanks for the heads-up. I'll try to take another look at it when I get the chance.

ondrejmirtes commented 6 months ago

Please see https://github.com/phpstan/phpdoc-parser/pull/232 and try to get inspired by that