Open mmcev106 opened 2 years ago
I found these snippets:
Yes, but currently the type of $a
is lost once the if
scope ends. I have a branch I've done some work on to fix this, but I haven't had much time the past few months to finish it and get it working. Hopefully I'll have more time in a month or two, I'll add this as a test case to make sure it works.
Thanks for the info! I'm curious, which branch would that be?
I think it's still local atm, it's failing a lot of tests and still needs quite a bit of work. I started working on loops and ifs after I got stuck on the same issue in #7688, since the variable not being defined outside of the if scope caused problems with my TryAnalyzer improvements.
@AndrolGenhald, any updates here? If not, would it make sense for that branch to be made public so that others might be able to help?
Should this taint be reported?
https://psalm.dev/r/8c624220b8