New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConditionalExpressionTypes todos #8360
Comments
Not sure its goal of this issue, but this should also work: |
Thank you for the example. This should work after
is done:+1: |
https://phpstan.org/r/8dba4abf-3e1c-499b-9c43-92495d677850 some examples of non working assertainty |
Brain stormed a lot about conditional types, I think merging them as LateResolvableType might not be possible. |
Merging conditional types can be improved than simple intersection. This test should be helpful when making that improvemnet |
Another improvement I can think of we can resolve conditional type here for union types |
The conditional type seems created before the assign? and invalidated? |
Feature request
Make ConditionalExpressionTypes to work for all expressions
addConditionalExpressions
first arg to expr from exprString and deleteexprStringToExpr
Improve conditionalExpressionTypes phpstan-src#1950 (comment)processBooleanConditionalTypes
mentioned in Improve conditionalExpressionTypes phpstan-src#1950 (comment)processBooleanConditionalTypes
work for all expressionscreateConditionalExpressions
work for all expressionsprocessSure/SureNotTypesForConditionalExpressionsAfterAssign
work for all expressionsAdd conditional types for these types of dependent types
Replace conditionalExpressionTypes with a LateResolvableType
The text was updated successfully, but these errors were encountered: