Skip to content

IntersectionType cannot be void#4835

Merged
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:no-void
Jan 29, 2026
Merged

IntersectionType cannot be void#4835
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:no-void

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 29, 2026

before this PR we checked IntersectionTypes of up to 38 inner-elements whether these are void.

by definition a IntersectionType cannot be void

@ondrejmirtes ondrejmirtes merged commit 861cd9a into phpstan:2.1.x Jan 29, 2026
628 of 640 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the no-void branch January 29, 2026 17:00
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