The previous syntax resulted in assertions having an impact on both cases when true and false were returned.
Let us switch to equality assertions when we cannot deduce anything for the other case, and to a single assertion when we can deduce something in both cases.
The previous syntax resulted in assertions having an impact on both cases when true and false were returned. Let us switch to equality assertions when we cannot deduce anything for the other case, and to a single assertion when we can deduce something in both cases.
See https://psalm.dev/docs/annotating_code/assertion_syntax/#equality-assertions See https://github.com/vimeo/psalm/issues/8896