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
I have an open PR with a lot of try/catch improvements, but unfortunately it's blocked by some other issues and I'm short on time lately. I'll see if I can work this in there before it's merged.
This function always returns an int, but Psalm outputs an InvalidReturnType error:
https://psalm.dev/r/f5300a45a7
If I add an extra
return 0
at the end of the function to make Psalm happy, then PhpStorm (rightly) shows a warning that the statement is unreachable.I expect that this should work in Psalm without an error, since similar issues like #4245 and #4327 have previously been fixed.
The text was updated successfully, but these errors were encountered: