You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is currently expected behavior. Supporting this would require for the static analyzer to prove that the previously computed type guards have not been invalidated at point where they are used, i.e. sth like
Yes, I call this feature “conditional types” or “dependent types”. “If
something is true, then some other thing will be of this type, or some
variable will exist etc...”.
https://phpstan.org/r/a2c25c03288fbfc18c7d0a7cb6460764
The text was updated successfully, but these errors were encountered: