Skip to content
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

PhpDocParser: support template type lower bounds #254

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

jiripudil
Copy link
Contributor

I'd like to take a shot at template type lower bounds (phpstan/phpstan#5179). This PR adds support for parsing lower bounds.

As I've reasoned in phpstan/phpstan#5179 (comment): while I don't think it's particularly useful, the implementation that I envision in phpstan/phpstan-src will be able to account for a template having both bounds, regardless of whether it's allowed in the parser or not. Thus, I don't see any technical reason not to allow it.

@ondrejmirtes ondrejmirtes merged commit 249f15f into phpstan:1.23.x Sep 22, 2024
55 of 57 checks passed
@ondrejmirtes
Copy link
Member

Awesome, thank you!

@jiripudil jiripudil deleted the template-type-lower-bounds branch September 22, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants