Skip to content

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Sep 30, 2025

@ondrejmirtes I discovered a bug introduced by #678

When an enum has only one value, I tried to do a Union of a single type and it crash with a ShouldNotHappenException.

I added a reproducer and a fix.

@VincentLanglet VincentLanglet changed the title WIP - Bug single enum Fix PHPStan crashing with single value enum Sep 30, 2025
@VincentLanglet VincentLanglet marked this pull request as ready for review September 30, 2025 13:27
@VincentLanglet
Copy link
Contributor Author

Failures seems unrelated

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.

1 participant