-
-
Notifications
You must be signed in to change notification settings - Fork 932
Narrowing types utilizing two conditional types #13742
Unanswered
coleshirley
asked this question in
Support
-
There are 4 properties on this object
- a boolean
- a nullable string which is always set if 1 is true
- a nullable string with is always set if 1 is false and sometimes set if 1 is true
- a virtual property which is the null coalesce of 4 ?? 3
Logically 4 will always be able to return a set string but I cannot figure out how to get phpstan to recognize that properly
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment