-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Increase Psalm to level 2 #319
Increase Psalm to level 2 #319
Conversation
Probably some of this should go to 1.x |
The last psalm error makes no sense...
It looks like a bug to me, I have tried a lot of combinations and even adding an assert after those if does not make psalm happy |
I answer to myself, yes it could make sense but a lot of errors are raised on 1.x due to deprecated code, I prefer to not invest time there. |
Changing
to Anyway, I didn't succeed to reproduce the error on psalm.dev ; can you ? |
I couldnt reproduce it either. |
I succeed reproducing a similar issue https://psalm.dev/r/c95d52a172 Seems like the issue is that the variable is not considered as |
To me it looks like a bug, should we suppress it for now? |
Sure, but we should open an issue on psalm and adding the link in the psalm-suppress IMHO. |
Here it is. |
7bbb8f1
to
2abdff2
Compare
.