Open white43 opened 2 years ago
I found these snippets:
git bisect
point to this commit 5f17ea9b63785d12af05363f3148ec4e8e660aa2
I'm not sure if it's a good solution, but setting possibly_undefined
to true
for non-existent array properties in getValueForKey
does help; all tests are still green. If that's ok, I can open a PR. :smile:
Please do :)
I've found several cases of the same false positive error. Pay attention to the last part with
isset
instead ofempty
, since somehow it works asexpected.https://psalm.dev/r/24b8f380fb