Sealed class exhaustiveness check not working correctly with deep class hierarchy #14420
Unanswered
adrian-delgado
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://phpstan.org/r/f9752c92-46b6-4e7b-80b5-97b5c70ee802
I have a class hierarchy
B < A < Base (abstract)and I want arguments of typeBaseto be treated asA|Bso I can handle them like this:but I can't get this to work.
am I missing something or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions