-
Notifications
You must be signed in to change notification settings - Fork 668
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
non-empty-list
type assertions are incorrectly considered redundant when list
is encountered
#2450
Comments
As with #2449, the best option here is for separate |
Hmm, I think I'm hitting a different bug with I can't seem to isolate through This happens if I use the suggested approach from #2449 in following code location: This static analysis verification file will no longer pass: |
Note: comment above may be due to #2449 (comment) |
Yeah part of the fix was to allow multiple |
While refining type declarations for
webmozart/assert
, I found that psalm considersnon-empty-list
to be a redundant condition on top oflist
orarray
: https://psalm.dev/r/e8ec0750f5Also seems that
non-empty-list
doesn't implicitly have key0
.The text was updated successfully, but these errors were encountered: