New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for callable template in PHPDoc parser #7084
feat: Add support for callable template in PHPDoc parser #7084
Conversation
4a8b276
to
c2b0ec8
Compare
c2b0ec8
to
e72c6dd
Compare
c4bb5ce
to
531943b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
531943b
to
f0b303d
Compare
0f2c97d
to
e5d481e
Compare
e5d481e
to
6e1f783
Compare
@Wirone may I ask you for a review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test cases are clear and code look OK in general, but the actual logic for parsing callable template is too mysterious IMHO. Please provide context (as a comments), so it's easier to grasp. Please don't answer that code is self-describing, because it's not (for me) 😛 .
Thank you @mvorisek 🍻! |
add support for parsing callable PHPDoc type with template like
Closure<T of DateTimeInterface>(T): bool
related phpstan phpstan/phpdoc-parser#232, phpstan/phpstan-src#2938 PRs