Skip to content

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