Skip to content

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Oct 1, 2024

Stumbled over this in UnionType and thought it should be set for BenevolentUnionType as well. I also noticed that it is not used yet. Tried early exiting in TypeCombinator::union() if only a normilzed union was passed, but it doesn't seem to affect performance much. Felt like a useless micro-optimization.

So this doesn't change anything really :)

@ondrejmirtes ondrejmirtes merged commit e53d7ee into phpstan:1.12.x Oct 6, 2024
482 of 500 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@herndlm herndlm deleted the benevolent-union-type-normalized branch October 6, 2024 14:49
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